Example #1
0
        public ActionResult UpdateMenuItem(AdminMenuItemModel itemModel)
        {
            if (itemModel.AdminMenuID == 0)
                return Json(new { success = false });

            tbl_AdminMenu menuItem = DomainService.SaveAdminMenuItem(itemModel.MenuText, itemModel.ParentID, itemModel.URL, itemModel.AdminMenuID);
            return Json(new { success = menuItem != null, adminMenuID = menuItem != null ? menuItem.AdminMenuID : 0 });
        }
Example #2
0
 public ActionResult AddMenuItem(AdminMenuItemModel itemModel)
 {
     tbl_AdminMenu menuItem = DomainService.SaveAdminMenuItem(itemModel.MenuText, itemModel.ParentID, itemModel.URL, 0);
     return Json(new { success = menuItem != null, adminMenuID = menuItem != null ? menuItem.AdminMenuID : 0 });
 }