public bool InSertElement(Menu_Object objMenu) { objMenu.IsDeleted = false; mdbContext.WEB_CARONLINE_SP_Menu_InSert(objMenu.MenuID, objMenu.Tittle, objMenu.Link, objMenu.Position, objMenu.Status, objMenu.IsDeleted); return(true); }
public List <Menu_Object> GetElements() { var objData = mdbContext.WEB_CARONLINE_SP_Menu_GetAll(); List <Menu_Object> lisMenuObject = new List <Menu_Object>(); foreach (var obj in objData) { Menu_Object objMenu = new Menu_Object(); objMenu.MenuID = obj.MenuID; objMenu.Tittle = obj.Tittle; objMenu.Link = obj.Link; objMenu.Position = obj.Position; objMenu.Status = obj.Status; objMenu.IsDeleted = obj.IsDeleted; lisMenuObject.Add(objMenu); } return(lisMenuObject); }
public Menu_Object GetElementById(Guid MenuId) { var objData = mdbContext.WEB_CARONLINE_SP_Menu_GetByID(MenuId); List <Menu_Object> lisMenuObject = new List <Menu_Object>(); foreach (var obj in objData) { Menu_Object objMenu = new Menu_Object(); objMenu.MenuID = obj.MenuID; objMenu.Tittle = obj.Tittle; objMenu.Link = obj.Link; objMenu.Position = obj.Position; objMenu.Status = obj.Status; objMenu.IsDeleted = obj.IsDeleted; return(objMenu); } return(null); }
public bool ExecuteOf_UpdateElement(Menu_Object objMenu) { return(mMenuDao.UpdateElement(objMenu)); }
public bool ExecuteOf_InSertElement(Menu_Object objMenu) { return(mMenuDao.InSertElement(objMenu)); }
public ActionResult Menu_Update(Menu_Object objMenu) { new Menu_BCL().ExecuteOf_UpdateElement(objMenu); return(RedirectToAction("Manage_Menu", "Menu")); }
public ActionResult Menu_Insert(Menu_Object MenuObject) { MenuObject.MenuID = Guid.NewGuid(); new Menu_BCL().ExecuteOf_InSertElement(MenuObject); return(RedirectToAction("Manage_Menu", "Menu")); }