public bool CheckDuplicateMenuGroup(string menuGroupName) { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(); bool status = appMenu.CheckDuplicateMenuGroup(menuGroupName, db); db.Stop(); return status; } catch (Exception) { throw; } finally { appMenu = null; } }
public DataTable SaveMenu() { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(true); DataTable dt = appMenu.SaveMenu(this, db); db.Stop(); return dt; } catch (Exception) { throw; } finally { appMenu = null; } }
public void UpdateMenuSorting(ListBox groupWiseUserMenuListListBox, string parentMenuId) { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(true); appMenu.UpdateMenuSorting(groupWiseUserMenuListListBox, parentMenuId, db); db.Stop(); } catch (Exception) { throw; } finally { appMenu = null; } }
public DataTable GetChildMenusByParentMenuId(string parentMenuId) { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(); DataTable dt = appMenu.GetChildMenusByParentMenuId(parentMenuId, db); db.Stop(); return dt; } catch (Exception) { throw; } finally { appMenu = null; } }
public DataTable LoadParentMenusByMenuAppAndType(string menuForApp, string menuType) { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(); DataTable dt = appMenu.LoadParentMenusByMenuAppAndType(menuForApp, menuType, db); db.Stop(); return dt; } catch (Exception) { throw; } finally { appMenu = null; } }
public string DeleteMenuById(string menuId, string forceToDelete) { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(); string status = appMenu.DeleteMenuById(menuId, forceToDelete, db); db.Stop(); return status; } catch (Exception) { throw; } finally { appMenu = null; } }
public void SaveUserPrivilegeMenu(string userId, string menuForApp, string menuType, string menuGroupId, List<string> userPrivilegeMenus) { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(); appMenu.SaveUserPrivilegeMenu(userId, menuForApp, menuType, menuGroupId, userPrivilegeMenus, db); db.Stop(); } catch (Exception) { throw; } finally { appMenu = null; } }
public DataTable GetPrivilegedMenuByUser(string userId, string menuForApp, string menuType, string menuGroupId) { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(); DataTable dt = appMenu.GetPrivilegedMenuByUser(userId, menuForApp, menuType, menuGroupId, db); db.Stop(); return dt; } catch (Exception) { throw; } finally { appMenu = null; } }
public DataTable GetAllMenuData(string menuForApp, string menuType) { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(); DataTable dt = appMenu.GetAllMenuData(menuForApp, menuType, db); db.Stop(); return dt; } catch (Exception) { throw; } finally { appMenu = null; } }
public DataTable GetMenusByMenuAppTypeGroupAndLevel(string menuForApp, string menuType, string menuGroupId, string menuLevel) { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(); DataTable dt = appMenu.GetMenusByMenuAppTypeGroupAndLevel(menuForApp, menuType, menuGroupId, menuLevel, db); db.Stop(); return dt; } catch (Exception) { throw; } finally { appMenu = null; } }
public DataTable GetMenuApps() { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(); DataTable dt = appMenu.GetMenuApps(db); db.Stop(); return dt; } catch (Exception) { throw; } finally { appMenu = null; } }
public void UpdateMenu() { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(true); appMenu.UpdateMenu(this, db); db.Stop(); } catch (Exception) { throw; } finally { appMenu = null; } }
public DataTable GetMenuGroupById(string menuGroupId) { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(); DataTable dt = appMenu.GetMenuGroupById(menuGroupId, db); db.Stop(); return dt; } catch (Exception) { throw; } finally { appMenu = null; } }
public void UpdateMenuActivation(string menuId, string activationStatus) { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(true); appMenu.UpdateMenuActivation(menuId, activationStatus, db); db.Stop(); } catch (Exception) { throw; } finally { appMenu = null; } }