Ejemplo n.º 1
0
 public WebStoreDbInitializer(
     WebStoreDB _db,
     UserManager <User> UserManager,
     RoleManager <Role> RoleManager,
     ILogger <WebStoreDbInitializer> _Logger)
 {
     db          = _db;
     userManager = UserManager;
     roleManager = RoleManager;
     logger      = _Logger;
 }
Ejemplo n.º 2
0
 public WebStoreDBInitializer(
     WebStoreDB db,
     UserManager<User> UserManager,
     RoleManager<Role> RoleManager,
     ILogger<WebStoreDBInitializer> Logger)
 {
     _UserManager = UserManager;
     _RoleManager = RoleManager;
     _db = db;
     _Logger = Logger;
 }
Ejemplo n.º 3
0
 public WebStoreDbInitializer(
     WebStoreDB webStoreDB,
     ILogger <WebStoreDbInitializer> logger,
     UserManager <User> userManager,
     RoleManager <Role> roleManager
     )
 {
     _webStoreDB  = webStoreDB;
     _logger      = logger;
     _roleManager = roleManager;
     _userManager = userManager;
 }
 //private DbInMemory _inMemoryDb;
 public WebStoreDbInitializer(
     WebStoreDB db,
     UserManager <User> UserManager,
     RoleManager <Role> RoleManager,
     ILogger <WebStoreDbInitializer> logger,
     IEmployeesData employeesData)
 {
     _db          = db;
     _UserManager = UserManager;
     _RoleManager = RoleManager;
     _logger      = logger;
 }
Ejemplo n.º 5
0
 public WebStoreDbInitializer(
     WebStoreDB db,
     UserManager <User> UserManager,
     RoleManager <Role> RoleManager,
     ILogger <WebStoreDbInitializer> Logger,
     IConfiguration Configuration)
 {
     _db            = db;
     _UserManager   = UserManager;
     _RoleManager   = RoleManager;
     _Logger        = Logger;
     _Configuration = Configuration;
 }
Ejemplo n.º 6
0
 public SqlOrderService(WebStoreDB db, UserManager <User> UserManager, ILogger <SqlOrderService> Logger)
 {
     _db          = db;
     _UserManager = UserManager;
     _Logger      = Logger;
 }
Ejemplo n.º 7
0
 public RolesApiController(WebStoreDB db)
 {
     _RoleStore = new RoleStore <Role>(db);
 }
Ejemplo n.º 8
0
        public async Task AddToRoleAsync([FromBody] User user, string role, [FromServices] WebStoreDB db)
        {
            await _UserStore.AddToRoleAsync(user, role);

            await db.SaveChangesAsync();
        }
Ejemplo n.º 9
0
 public WebStoreDBInitializer(WebStoreDB db, ILogger <WebStoreDBInitializer> logger)
 {
     _Db     = db;
     _Logger = logger;
 }
Ejemplo n.º 10
0
        public async Task RemoveClaimsAsync([FromBody] RemoveClaimDTO ClaimInfo, [FromServices] WebStoreDB db)
        {
            await _UserStore.RemoveClaimsAsync(ClaimInfo.User, ClaimInfo.Claims);

            await db.SaveChangesAsync();
        }
Ejemplo n.º 11
0
        public async Task AddLoginAsync([FromBody] AddLoginDTO login, [FromServices] WebStoreDB db)
        {
            await _UserStore.AddLoginAsync(login.User, login.UserLoginInfo);

            await db.SaveChangesAsync();
        }
Ejemplo n.º 12
0
        public async Task <bool> RemoveLoginAsync([FromBody] User user, string loginProvider, string providerKey, [FromServices] WebStoreDB dB)
        {
            await _userStore.RemoveLoginAsync(user, loginProvider, providerKey);

            await dB.SaveChangesAsync();

            return(user.PhoneNumberConfirmed);
        }
Ejemplo n.º 13
0
 public SqlOrderService(WebStoreDB dB, ICartService cart, UserManager <User> userManager)
 {
     _dB          = dB;
     _userManager = userManager;
 }
Ejemplo n.º 14
0
        public async Task RemoveClaimAsync([FromBody] RemoveClaimDTO claimInfo, [FromServices] WebStoreDB dB)
        {
            await _userStore.RemoveClaimsAsync(claimInfo.User, claimInfo.Claims);

            await dB.SaveChangesAsync();
        }
Ejemplo n.º 15
0
 public UsersApiController(WebStoreDB dB)
 {
     _userStore = new UserStore <User, Role, WebStoreDB>(dB);
 }
Ejemplo n.º 16
0
        public async Task RemoveFromRoleAsync([FromBody] User user, string role, [FromServices] WebStoreDB dB)
        {
            await _userStore.RemoveFromRoleAsync(user, role);

            await dB.SaveChangesAsync();
        }
Ejemplo n.º 17
0
 public SqlProductData(WebStoreDB dB) => _db = dB;
Ejemplo n.º 18
0
 public InSqlOrderService(WebStoreDB webStoreDB, UserManager <User> userManager)
 {
     _webStoreDb  = webStoreDB;
     _userManager = userManager;
 }
Ejemplo n.º 19
0
 public SQLProductData(WebStoreDB db) => _db = db;
Ejemplo n.º 20
0
 public InSqlDbProductData(WebStoreDB dB)
 {
     _dB = dB;
 }
Ejemplo n.º 21
0
 public SqlOrderService(WebStoreDB db, UserManager <User> UserManager)
 {
     this._db     = db;
     _UserManager = UserManager;
 }
Ejemplo n.º 22
0
 public SqlProductData(WebStoreDB db, ILogger <SqlProductData> logger)
 {
     _Db     = db;
     _Logger = logger;
 }
 public WebStoreDBInitializer(WebStoreDB db, UserManager <User> userManager, RoleManager <Role> roleManager)
 {
     _db          = db;
     _userManager = userManager;
     _roleManager = roleManager;
 }
Ejemplo n.º 24
0
 public WebStoreDBInit(WebStoreDB webStoreDB, UserManager <User> userManager, RoleManager <Role> roleManager)
 {
     _webStoreDb  = webStoreDB;
     _userManager = userManager;
     _roleManager = roleManager;
 }
Ejemplo n.º 25
0
 public UsersController(WebStoreDB db)
 {
     _UserStore = new UserStore <User, Role, WebStoreDB>(db);
 }
Ejemplo n.º 26
0
 public SqlEmployeeData(WebStoreDB _db) => db = _db;
Ejemplo n.º 27
0
        public async Task RemoveLoginAsync([FromBody] User user, string LoginProvider, string ProviderKey, [FromServices] WebStoreDB db)
        {
            await _UserStore.RemoveLoginAsync(user, LoginProvider, ProviderKey);

            await db.SaveChangesAsync();
        }
Ejemplo n.º 28
0
 public InSqIProductData(WebStoreDB db)
 {
     _db = db;
 }
Ejemplo n.º 29
0
 public SqlEmployeesData(WebStoreDB db, ILogger <SqlEmployeesData> logger)
 {
     _db     = db;
     _logger = logger;
 }
Ejemplo n.º 30
0
 public UsersCotroller(WebStoreDB Db)
 {
     _UserStore = new UserStore <User, Role, WebStoreDB>(Db);
 }