Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }