asp.net mvc does not run method when the request method is POST
Posted
by Serhat Özgel
on Stack Overflow
See other posts from Stack Overflow
or by Serhat Özgel
Published on 2010-05-15T15:41:40Z
Indexed on
2010/05/15
15:44 UTC
Read the original article
Hit count: 302
ASP.NET
|asp.net-mvc
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?
© Stack Overflow or respective owner