BinaryStudio.TaskManager.Logic.Core.UserRepository.GetRoleByName C# (CSharp) 메소드

GetRoleByName() 공개 메소드

The get role by name.
public GetRoleByName ( string userName ) : string
userName string /// The user name. ///
리턴 string
        public string GetRoleByName(string userName)
        {
            return this.dataBaseContext.Roles.ToList().Where(it => it.Id == this.GetByName(userName).RoleId).Select(x => x.RoleName).First();
        }
    }