Esempio n. 1
0
 /// <summary>
 /// Method to Get List of Menus By UserGroups
 /// </summary>
 /// <param name="MenuName">MenuName as Input.</param>
 /// <param name="UserGroupID">UserGroupID  as Input.</param>
 /// <returns>Returns List of Menus</returns>
 public List <UserRightsEn> GetMenuByUser(int UserID)
 {
     try
     {
         UserRightsDAL loDs = new UserRightsDAL();
         return(loDs.GetMenuByUser(UserID));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Date Created:   27/08/2011
        /// Created By:     Josephine Gad
        /// (description)   Get user module menu by user name
        /// </summary>
        public static DataTable GetMenuByUser(string UserName)
        {
            DataTable ModuleDataTable = null;

            try
            {
                ModuleDataTable = UserRightsDAL.GetMenuByUser(UserName);
                return(ModuleDataTable);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                if (ModuleDataTable != null)
                {
                    ModuleDataTable.Dispose();
                }
            }
        }