POST API ASP.Net C# (MVC)
API Controller
public class MyapiController : ApiController
{
// GET
api/myapi
public MyapiController() { }
// POST
api/myapi
public IHttpActionResult Postdata([FromBody] NotificationModel data)
{
UserRepository obj = new UserRepository();
string ErrMsg="";
obj.AddNotesDB(data, ref ErrMsg);
return Ok();
}
}