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)); }
public ActionResult EditPageContent(int pageId) { ViewBag.SelectedTab = SelectedAdminTab.CMSManager; EditCMSPageModel model = _cmsManager.GetPageContentByPageId(pageId); if (model == null) { model = new EditCMSPageModel(); } return(View(model)); }