The type or namespace name 'HttpGet' could not be found when add 'System.Web.Http' namespace
- 阅读更多 关于 The type or namespace name 'HttpGet' could not be found when add 'System.Web.Http' namespace
问题 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 ActionResult About() { ViewBag.Message = "Your app description page."; return View(); } [HttpPost] public ActionResult About(ModelName ccc) { ViewBag.Message = "Your app description page."; return View(); } We need the using System.Web.Mvc; namespace for [HttpPost] and [HttpGet] attributes. So I added the using System.Web.Mvc; namespace in my