asp.net mvc does not run method when the request method is POST
- by Serhat Özgel
I have a method in a controller:
public class WorkController : Controller
{
public JsonResult GetWorks()
{
...
return Json(outDto);
}
}
When I make a get request by Work/GetWorks, the method runs. When I do the same with a POST request, Application_BeginRequest runs, but the method does not. How can I know the reason to this?