Exemplo n.º 1
0
        public ActionResult AddModule(string pageTitle, FormCollection collection)
        {
            throw new NotImplementedException();
            var page = pageService.GetPageByTitle(pageTitle.UrlDecodeSeo());

            ModuleController mc = new ModuleController();

            //			mc.Edit
        }
Exemplo n.º 2
0
        public ActionResult EditModule(string pageTitle, string moduleTitle, FormCollection collection)
        {
            try
            {
                var page = pageService.GetPageByTitle(pageTitle.UrlDecodeSeo());

                ModuleController mc = new ModuleController();

                var editResult = mc.Edit(page, moduleTitle.UrlDecodeSeo(), collection);

                pageService.Save(page);

                return editResult;
            }
            catch
            {
                return Json(new { status = "fail", message = "Unable to save page " + pageTitle.UrlDecodeSeo() }); ;
            }
        }