Jul 13, 2016 11:14 AM|sudip_inn|LINK
i need to know what [formbody] denotes and what it is ?
when to use [formbody] ?
we normally send data from client side to server side and data is automatically deserialize to custom collection
in asp.net mvc suppose we have registration form and we pass form's data in json format from client side to server side function and server side function look like
public ActionResult Example2(Employee emp)
ViewBag.StatusMessage = "Employee data received successfully for ID " + emp.Id + "!";
so when we pass data from client side to server side function then why we need [formbody] ?
what is the significant of [formbody] usage in server side action ?
also tell me can we use [formbody] in asp.net mvc action or is it only specific for web api ?