示例#1
0
 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);
 }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
 public bool ExecuteOf_UpdateElement(Menu_Object objMenu)
 {
     return(mMenuDao.UpdateElement(objMenu));
 }
示例#5
0
 public bool ExecuteOf_InSertElement(Menu_Object objMenu)
 {
     return(mMenuDao.InSertElement(objMenu));
 }
示例#6
0
 public ActionResult Menu_Update(Menu_Object objMenu)
 {
     new Menu_BCL().ExecuteOf_UpdateElement(objMenu);
     return(RedirectToAction("Manage_Menu", "Menu"));
 }
示例#7
0
 public ActionResult Menu_Insert(Menu_Object MenuObject)
 {
     MenuObject.MenuID = Guid.NewGuid();
     new Menu_BCL().ExecuteOf_InSertElement(MenuObject);
     return(RedirectToAction("Manage_Menu", "Menu"));
 }