SyntaxFix
Write A Post
Hire A Developer
Questions
In ~/Views/ViewStart.cshtml:
~/Views/ViewStart.cshtml
@{ Layout = Request.IsAjaxRequest() ? null : "~/Views/Shared/_Layout.cshtml"; }
and in the controller:
public ActionResult Index() { return View(); }