public string GetRoleByName(string userName) { return this.dataBaseContext.Roles.ToList().Where(it => it.Id == this.GetByName(userName).RoleId).Select(x => x.RoleName).First(); } }