1- using System . Configuration ;
1+
2+ using System . Configuration ;
23using System . Data . Entity ;
34using System . Linq ;
45using System . Net . Http ;
56using System . Threading . Tasks ;
67using System . Web . Configuration ;
78using System . Web . Http ;
89using Castle . Core . Internal ;
10+ using eFormAPI . Web . Infrastructure . Data ;
911using eFormAPI . Web . Infrastructure . Identity ;
1012using eFormAPI . Web . Infrastructure . Models . Auth ;
1113using eFormAPI . Web . Infrastructure . Models . Settings . User ;
1214using eFormAPI . Web . Infrastructure . Models . User ;
13- using eFormApi . BasePn . Consts ;
14- using eFormApi . BasePn . Infrastructure . Data ;
15- using eFormApi . BasePn . Infrastructure . Data . Entities ;
16- using eFormApi . BasePn . Infrastructure . Helpers ;
17- using eFormApi . BasePn . Infrastructure . Models . API ;
1815using Microsoft . AspNet . Identity ;
16+ using Microsoft . AspNet . Identity . EntityFramework ;
1917using Microsoft . AspNet . Identity . Owin ;
18+ using Microting . eFormApi . BasePn . Consts ;
19+ using Microting . eFormApi . BasePn . Infrastructure . Data . Entities ;
20+ using Microting . eFormApi . BasePn . Infrastructure . Helpers ;
21+ using Microting . eFormApi . BasePn . Infrastructure . Models . API ;
2022
2123namespace eFormAPI . Web . Controllers
2224{
@@ -31,7 +33,7 @@ public class AccountController : ApiController
3133 public AccountController ( BaseDbContext dbContext )
3234 {
3335 _eformRoleManager = new EformRoleManager (
34- new EformRoleStore ( new BaseDbContext ( ) ) ) ;
36+ new RoleStore < EformRole , int , EformUserRole > ( new BaseDbContext ( ) ) ) ;
3537 _dbContext = dbContext ;
3638 }
3739
@@ -47,7 +49,7 @@ public UserInfoViewModel GetUserInfo()
4749 {
4850 return null ;
4951 }
50- var rolemanager = new EformRoleManager ( new EformRoleStore ( BaseDbContext . Create ( ) ) ) ;
52+ var rolemanager = new EformRoleManager ( new RoleStore < EformRole , int , EformUserRole > ( BaseDbContext . Create ( ) ) ) ;
5153 var roleId = user . Roles . FirstOrDefault ( ) ? . RoleId ;
5254 string role = null ;
5355 if ( roleId != null ) role = rolemanager . FindById ( ( int ) roleId ) ? . Name ;
0 commit comments