示例#1
0
        /// <summary>
        /// Function foe get the role of current user.
        /// </summary>
        /// <param name="objLoginProp"></param>
        /// <returns>List</returns>
        /// <createdBy></createdBy>
        /// <createdOn>Apr-22,2016</createdOn>
        public List <string> ExistsUserRoleList(AdminUserProp objAdminUserProp)
        {
            List <string> objlstExistsRole = 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.
                objlstExistsRole = objAdminUserDAL.EixstingRoleList(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(objlstExistsRole);
        }