示例#1
0
        /// <summary>
        /// Function To Chanege the user role  .
        /// </summary>
        /// <param name="objLoginProp"></param>
        /// <returns>List</returns>
        /// <createdBy></createdBy>
        /// <createdOn>Apr-23,2016</createdOn>
        public List <string> AllRoleList(AdminUserProp objAdminUserProp)
        {
            List <string> objlstNewRole   = new List <string>();
            AdminUserDAL  objAdminUserDAL = new AdminUserDAL(); /// Creating The Object of AdminUserDAL

            CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "Called {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
            try
            {
                //Calling and binding the existing user Role.
                objlstNewRole = objAdminUserDAL.AllRoleList(objAdminUserProp);
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "End {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
            }
            return(objlstNewRole);
        }