API:
[HttpPost]
public bool UpdateTicketStatus(Ticket t)
{
string Id=t.Id;
}
Model:
public class Ticket
{
public int Id { get; set; }
public string AssignedTo { get; set; }
public string State { get; set; }
public string History { get; set; }
}
Using Post man tool send the content as json with raw data as below. It works
{ "Id":"169248", "AssignedTo":"xxxx", "State":"Committed", "History":"test1" }
Please make sure that you have enabled Cors.
[EnableCors(origins: "*", headers: "*", methods: "*")]
public class TicketController : ApiController
{
}