예제 #1
0
        public JsonResult GetTerms(int spotDealID)
        {
            var           data         = _cmsManager.GetPageContentByPageId((int)CMSPageType.TermsAndConditions);
            List <string> resultString = new List <string>();

            resultString.Add(RenderRazorViewToString("Partials/_terms", new object()));
            return(Json(new ActionOutput {
                Status = ActionStatus.Successfull, Message = "", Results = resultString
            }, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public ActionResult EditPageContent(int pageId)
        {
            ViewBag.SelectedTab = SelectedAdminTab.CMSManager;
            EditCMSPageModel model = _cmsManager.GetPageContentByPageId(pageId);

            if (model == null)
            {
                model = new EditCMSPageModel();
            }
            return(View(model));
        }