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

.NET (Core and Framework)

 
AnswerRe: Beginner question...regarding garbage collection Pin
Dave Kreskowiak4-Oct-18 4:34
mveDave Kreskowiak4-Oct-18 4:34 
QuestionVSTO questions about the Outlook Notes (Sticky Notes) part Pin
Dan Sutton29-Sep-18 11:29
Dan Sutton29-Sep-18 11:29 
QuestionHow to undo excluded changes in Visual Studio 2017? Pin
rookiecg28-Sep-18 7:10
rookiecg28-Sep-18 7:10 
AnswerRe: How to undo excluded changes in Visual Studio 2017? Pin
Dave Kreskowiak28-Sep-18 10:07
mveDave Kreskowiak28-Sep-18 10:07 
Generalplz Pin
Member 1398528114-Sep-18 21:44
Member 1398528114-Sep-18 21:44 
GeneralRe: plz Pin
Eddy Vluggen14-Sep-18 23:20
professionalEddy Vluggen14-Sep-18 23:20 
QuestionRESTful transfers Pin
Member 1396792930-Aug-18 13:40
Member 1396792930-Aug-18 13:40 
AnswerRe: RESTful transfers Pin
jkirkerx9-Sep-18 17:05
professionaljkirkerx9-Sep-18 17: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 3:00
Member 1187951310-Aug-18 3:00 
AnswerRe: API Pin
Richard MacCutchan10-Aug-18 4:18
mveRichard MacCutchan10-Aug-18 4:18 
AnswerRe: API Pin
Dave Kreskowiak10-Aug-18 4:19
mveDave Kreskowiak10-Aug-18 4:19 
GeneralRe: API Pin
Dinarys20-Aug-18 10:32
professionalDinarys20-Aug-18 10:32 
QuestionDisplaying different SET of data on button click Pin
cloudenv4-Aug-18 0:24
cloudenv4-Aug-18 0:24 
AnswerRe: Displaying different SET of data on button click Pin
Eddy Vluggen4-Aug-18 0:48
professionalEddy Vluggen4-Aug-18 0:48 
AnswerRe: Displaying different SET of data on button click Pin
Dave Kreskowiak4-Aug-18 8:24
mveDave Kreskowiak4-Aug-18 8:24 
Question.Net treenode Pin
Member 139370483-Aug-18 18:51
Member 139370483-Aug-18 18:51 
AnswerRe: .Net treenode Pin
Richard MacCutchan3-Aug-18 20:53
mveRichard MacCutchan3-Aug-18 20:53 
Questionhow to get all assemblyinfo.cs associate in visual studio solution Pin
a.mohamedyasin30-Jul-18 1:12
a.mohamedyasin30-Jul-18 1:12 
AnswerRe: how to get all assemblyinfo.cs associate in visual studio solution Pin
Pete O'Hanlon30-Jul-18 3:21
mvePete O'Hanlon30-Jul-18 3:21 
GeneralRe: how to get all assemblyinfo.cs associate in visual studio solution Pin
a.mohamedyasin30-Jul-18 19:42
a.mohamedyasin30-Jul-18 19:42 
GeneralRe: how to get all assemblyinfo.cs associate in visual studio solution Pin
Pete O'Hanlon30-Jul-18 21:30
mvePete O'Hanlon30-Jul-18 21:30 
AnswerRe: how to get all assemblyinfo.cs associate in visual studio solution Pin
Gerry Schmitz31-Jul-18 13:24
mveGerry Schmitz31-Jul-18 13:24 
GeneralRe: how to get all assemblyinfo.cs associate in visual studio solution Pin
a.mohamedyasin31-Jul-18 23:01
a.mohamedyasin31-Jul-18 23:01 
Question.NET , SQLite to SQLServer Entity Framework migration Pin
MrKBA22-Jul-18 22:16
MrKBA22-Jul-18 22:16 
AnswerRe: .NET , SQLite to SQLServer Entity Framework migration Pin
Mycroft Holmes22-Jul-18 22:49
professionalMycroft Holmes22-Jul-18 22: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.