using Infrastructure.Data; using Infrastructure.Web; using System.Collections.Generic; using System.Security.Claims; using TeacherExt.Entities; namespace TeacherExt { public class UserService : IUserService { private readonly IRepository _userRepo; public UserService(IRepository userRepo) { this._userRepo = userRepo; } public List GetOrgans(string userName) { return new List(); } public List GetRoles(string userName, string organId) { return new List(); //return this._userRepo.ReadOnlyTable() // .Where(o => o.UserName == userName) // .SelectMany(o => o.UserRoles) // .Select(o => o.Role.Name) // .ToList() // .Select(o => new Claim(ClaimTypes.Role,o)) // .ToList(); } } }