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()); }
public ActionResult ViewAllPageTypes() { try { ViewBag.PageTypeList = PageDAO.LoadPageTypes(); } catch (Exception e) { Logging.WriteLog("ChimeraWebsite.Areas.Admin.Controllers.PageController.ViewAllPageTypes()" + e.Message); } return(View()); }