Пример #1
0
        public ActionResult EditSeo(EditSeoViewModel model)
        {
            bool success = false;
            if (ModelState.IsValid)
            {
                success = GetCommand<SavePageSeoCommand>().ExecuteCommand(model);
            }

            return Json(new WireJson(success));
        }
Пример #2
0
        public ActionResult EditSeo(EditSeoViewModel model)
        {
            bool success = false;            
            if (ModelState.IsValid)
            {
                model = GetCommand<SavePageSeoCommand>().ExecuteCommand(model);
                success = model != null;
            }

            return WireJson(success, model);
        }