public UnifOfWork(SqlServerApplicationContext context, IConfiguration configuration, IHttpContextAccessor httpContextAccessor, IHostEnvironment environment)
 {
     _context             = context;
     _configuration       = configuration;
     _httpContextAccessor = httpContextAccessor;
     _environment         = environment;
 }
Example #2
0
 public CustomerController(UserManager <Customer> userManager, RoleManager <CustomerRole> roleManager, SqlServerApplicationContext context)
 {
     this.userManager = userManager;
     this.roleManager = roleManager;
     this.context     = context;
 }