Ejemplo n.º 1
0
        public ActionResult Edit(string id, string navigationMenuData)
        {
            try
            {
                if (string.IsNullOrWhiteSpace(navigationMenuData) && !string.IsNullOrWhiteSpace(id))
                {
                    ViewBag.NavigationMenu = NavigationMenuDAO.LoadById(id);
                }
                else if (string.IsNullOrWhiteSpace(navigationMenuData) && string.IsNullOrWhiteSpace(id))
                {
                    ViewBag.NavigationMenu = new NavigationMenu();
                }
                else
                {
                    ViewBag.NavigationMenu = JsonConvert.DeserializeObject <NavigationMenu>(navigationMenuData);
                }

                ViewBag.PageTypeList = PageDAO.LoadPageTypes();
            }
            catch (Exception e)
            {
                CompanyCommons.Logging.WriteLog("ChimeraWebsite.Areas.Admin.Controllers.NavMenuController.Edit() " + e.Message);
            }

            return(View());
        }
Ejemplo n.º 2
0
        public ActionResult ViewAllPageTypes()
        {
            try
            {
                ViewBag.PageTypeList = PageDAO.LoadPageTypes();
            }
            catch (Exception e)
            {
                Logging.WriteLog("ChimeraWebsite.Areas.Admin.Controllers.PageController.ViewAllPageTypes()" + e.Message);
            }

            return(View());
        }