예제 #1
0
        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));
        }
예제 #2
0
        public ActionResult Markup(int pageSectionId)
        {
            var pageSection = _pageSectionService.Get(pageSectionId);

            var model = new MarkupViewModel()
            {
                PageSectionId   = pageSectionId,
                PageSectionBody = pageSection.PageSectionBody
            };

            return(View("_Markup", model));
        }
예제 #3
0
        public JsonResult Markup(MarkupViewModel model)
        {
            _sectionService.EditMarkup(model.PageSectionId, model.PageSectionBody);

            return(Json(new { State = true, Markup = model.PageSectionBody }));
        }
예제 #4
0
        public ActionResult Markup(MarkupViewModel model)
        {
            _pageSectionService.Markup(model.PageSectionId, model.PageSectionBody);

            return(Content("Refresh"));
        }
예제 #5
0
        public async Task <JsonResult> Markup(MarkupViewModel model)
        {
            await _sectionService.EditMarkupAsync(model.PageSectionId, model.PageSectionBody);

            return(Json(new { State = true, Markup = model.PageSectionBody }));
        }
예제 #6
0
 public Markup()
 {
     InitializeComponent();
     _viewModel  = (MarkupViewModel)LayoutRoot.DataContext;
     DataContext = _viewModel;
 }