public ActionResult PrivacyPolicy() { //return View(); return Content(System.IO.File.ReadAllText(Server.MapPath("~/privacypolicy.html"))); }
With layout
In Controller
public ActionResult PrivacyPolicy() { return View(); }In view file
@Html.Raw(File.ReadAllText(Server.MapPath("~/privacypolicy.html")))