- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
public interface IApplicationUserManager { }
public class ApplicationUserManager : UserManager<ApplicationUser, long>, IApplicationUserManager
{
private static ApplicationUserManager applicationUserManager;
public static bool IsUserInRole(long userId, string roleName)
{
return applicationUserManager.UserInRole(userId, roleName);
}
public ApplicationUserManager(IAccountService accountService)
: base(new ApplicationUserStore())
{
this.accountService = accountService;
applicationUserManager = this;
}
}
Комментарии (0) RSS
Добавить комментарий