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();
        }
    }