The type or namespace name 'HttpGet' could not be found when add 'System.Web.Http' namespace

后端 未结 4 1367
灰色年华
灰色年华 2021-02-04 01:28

I have one issue in MVC .

Currently I am working in MVC and the version is MVC4 . And I have 2 ActionResult Method, see below

[HttpGet]
 public ActionRe         


        
4条回答
  •  一生所求
    2021-02-04 01:35

    Here is solution for that problem try it....

     [System.Web.Mvc.HttpGet]
     public ActionResult About()
    {
            ViewBag.Message = "Your app description page.";
    
            return View();
        }
    

提交回复
热议问题