public async Task <ActionResult> Markup(int pageSectionId) { var pageSection = await _sectionService.GetAsync(pageSectionId); var model = new MarkupViewModel { PageSectionId = pageSectionId, PageSectionBody = pageSection.PageSectionBody }; return(View("_Markup", model)); }
public ActionResult Markup(int pageSectionId) { var pageSection = _pageSectionService.Get(pageSectionId); var model = new MarkupViewModel() { PageSectionId = pageSectionId, PageSectionBody = pageSection.PageSectionBody }; return(View("_Markup", model)); }
public JsonResult Markup(MarkupViewModel model) { _sectionService.EditMarkup(model.PageSectionId, model.PageSectionBody); return(Json(new { State = true, Markup = model.PageSectionBody })); }
public ActionResult Markup(MarkupViewModel model) { _pageSectionService.Markup(model.PageSectionId, model.PageSectionBody); return(Content("Refresh")); }
public async Task <JsonResult> Markup(MarkupViewModel model) { await _sectionService.EditMarkupAsync(model.PageSectionId, model.PageSectionBody); return(Json(new { State = true, Markup = model.PageSectionBody })); }
public Markup() { InitializeComponent(); _viewModel = (MarkupViewModel)LayoutRoot.DataContext; DataContext = _viewModel; }