You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/labs/Teacher/TeacherExt/UserService.cs

35 lines
960 B

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<Person> _userRepo;
public UserService(IRepository<Person> userRepo)
{
this._userRepo = userRepo;
}
public List<string> GetOrgans(string userName)
{
return new List<string>();
}
public List<Claim> GetRoles(string userName, string organId)
{
return new List<Claim>();
//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();
}
}
}