How to determine if the view is for GET or POST in ASP.NET MVC?

后端 未结 3 741
梦如初夏
梦如初夏 2021-01-01 11:10

MVC use action attributes to map the same view for http get or post:

 [HttpGet] 
 public ActionResult Index()
 {
    ViewBag.Message = \"Message\";
    retur         


        
3条回答
提交回复
热议问题