public virtual PartialViewResult RegulaminAjaxPost() { var path = Path.Combine(HttpRuntime.AppDomainAppPath, "Content/web/regulamin.html"); var text = new MvcHtmlString(""); if (System.IO.File.Exists(path)) { text = new MvcHtmlString(System.IO.File.ReadAllText(path)); } var model = new RegulaminModel { Text = text }; return(PartialView("_RegulaminGet", model)); }
public virtual ActionResult PolitykaPrywatnosci() { ViewBag.SelectedOpt = 5; var path = Path.Combine(HttpRuntime.AppDomainAppPath, "Content/web/politykaprywatnosci.html"); var text = new MvcHtmlString(""); if (System.IO.File.Exists(path)) { text = new MvcHtmlString(System.IO.File.ReadAllText(path)); } var model = new RegulaminModel { Text = text }; return(View(model)); }