Click here to Skip to main content
15,789,698 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Beginner question...regarding garbage collection Pin
Dave Kreskowiak4-Oct-18 5:34
mveDave Kreskowiak4-Oct-18 5:34 
QuestionVSTO questions about the Outlook Notes (Sticky Notes) part Pin
Dan Sutton29-Sep-18 12:29
Dan Sutton29-Sep-18 12:29 
QuestionHow to undo excluded changes in Visual Studio 2017? Pin
rookiecg28-Sep-18 8:10
rookiecg28-Sep-18 8:10 
AnswerRe: How to undo excluded changes in Visual Studio 2017? Pin
Dave Kreskowiak28-Sep-18 11:07
mveDave Kreskowiak28-Sep-18 11:07 
Generalplz Pin
Member 1398528114-Sep-18 22:44
Member 1398528114-Sep-18 22:44 
GeneralRe: plz Pin
Eddy Vluggen15-Sep-18 0:20
professionalEddy Vluggen15-Sep-18 0:20 
QuestionRESTful transfers Pin
Member 1396792930-Aug-18 14:40
Member 1396792930-Aug-18 14:40 
AnswerRe: RESTful transfers Pin
jkirkerx9-Sep-18 18:05
professionaljkirkerx9-Sep-18 18:05 
I’ve written many of them in the last week. I use a .Net Core controller, with a IActionResult that simply returns a status code such as 201 for record added.

This is a Microsoft server example in C Sharp, pretty close to what I have been writing. But I’m using JSON instead. This should return a HTTP status code indicating success, add, etc. The part to look at is the return value and how to call the service. You can fancy with routing and just call a url route and pass the data to the below service url.
https://domain.com/api/work/create

You write the server side in say NodeJS as well, as long it can talk to a database.

Your question is vague and I’m nit sure what side you want to look at.
HttpPost]
public IActionResult Create(TodoItem item)
{
    _context.TodoItems.Add(item);
    _context.SaveChanges();

    return CreatedAtRoute("GetTodo", new { id = item.Id }, item);
}
If it ain't broke don't fix it
Discover my world at jkirkerx.com

QuestionAPI Pin
Member 1187951310-Aug-18 4:00
Member 1187951310-Aug-18 4:00 
AnswerRe: API Pin
Richard MacCutchan10-Aug-18 5:18
mveRichard MacCutchan10-Aug-18 5:18 
AnswerRe: API Pin
Dave Kreskowiak10-Aug-18 5:19
mveDave Kreskowiak10-Aug-18 5:19 
GeneralRe: API Pin
Dinarys20-Aug-18 11:32
professionalDinarys20-Aug-18 11:32 
QuestionDisplaying different SET of data on button click Pin
cloudenv4-Aug-18 1:24
cloudenv4-Aug-18 1:24 
AnswerRe: Displaying different SET of data on button click Pin
Eddy Vluggen4-Aug-18 1:48
professionalEddy Vluggen4-Aug-18 1:48 
AnswerRe: Displaying different SET of data on button click Pin
Dave Kreskowiak4-Aug-18 9:24
mveDave Kreskowiak4-Aug-18 9:24 
Question.Net treenode Pin
Member 139370483-Aug-18 19:51
Member 139370483-Aug-18 19:51 
AnswerRe: .Net treenode Pin
Richard MacCutchan3-Aug-18 21:53
mveRichard MacCutchan3-Aug-18 21:53 
Questionhow to get all assemblyinfo.cs associate in visual studio solution Pin
a.mohamedyasin30-Jul-18 2:12
a.mohamedyasin30-Jul-18 2:12 
AnswerRe: how to get all assemblyinfo.cs associate in visual studio solution Pin
Pete O'Hanlon30-Jul-18 4:21
subeditorPete O'Hanlon30-Jul-18 4:21 
GeneralRe: how to get all assemblyinfo.cs associate in visual studio solution Pin
a.mohamedyasin30-Jul-18 20:42
a.mohamedyasin30-Jul-18 20:42 
GeneralRe: how to get all assemblyinfo.cs associate in visual studio solution Pin
Pete O'Hanlon30-Jul-18 22:30
subeditorPete O'Hanlon30-Jul-18 22:30 
AnswerRe: how to get all assemblyinfo.cs associate in visual studio solution Pin
Gerry Schmitz31-Jul-18 14:24
mveGerry Schmitz31-Jul-18 14:24 
GeneralRe: how to get all assemblyinfo.cs associate in visual studio solution Pin
a.mohamedyasin1-Aug-18 0:01
a.mohamedyasin1-Aug-18 0:01 
Question.NET , SQLite to SQLServer Entity Framework migration Pin
MrKBA22-Jul-18 23:16
MrKBA22-Jul-18 23:16 
AnswerRe: .NET , SQLite to SQLServer Entity Framework migration Pin
Mycroft Holmes22-Jul-18 23:49
professionalMycroft Holmes22-Jul-18 23:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.