Web API 10; Implement POST method in Web API

preview_player
Показать описание


Implement POST method in ASP .NET Web API
Рекомендации по теме
Комментарии
Автор

Just in case you have an error in this video, when making post in POSTMAN, try this: 1.- in SQL change DOJ "Date" to "Datetime". 2.-in EmployeeModel.cs remove "?" from DateTime?. 3.- then before the query, inside EmployeeController you have to format. use this code (DateTime time = emp.DOJ; string format = "yyyy-MM-dd HH:mm:ss";) 4. inside the query change DOJ to time.ToString(format).

eldlarosa
Автор

I wish I could give you a million LIKE
Thank you so much

marwan
Автор

Hi, Can you explain the syntax used for passing values? I mean what is single quotes, followed by double quotes functionality.

abdulkaleemshaik
Автор

Here in postman while doing POST method...getting Added successfully in the response instead of that I need to get the json response of the record which I have added into the db..how do I do that ?

sravanikorra
Автор

what about if is more tan one employee? like two or three like a list of employees?

jorgegomez
Автор

I just added the interpolation symbol as well as the multiline one to give an easier on the eye sql string:

string query = $@"
insert into Employees (




) values (




)";

jamesbowring
Автор

fail to add row to the db using post as the emp obj is null. suggestions?

PoonamSTrivedi
Автор

i have a problem, when i enter the values in postman, the object is null, why this happend?

CesarMunoz-lqgh
Автор

Can we get project file for both react & web api?

CRACKMHTCET