Ejemplo n.º 1
0
 public AccountService()
 {
     this._context = new SilberScarvesDbContext();
     this._customerRepository = new CustomerRepository(this._context);
     this._addressRepository = new AddressRepository(this._context);
     this._userRepository = new UserRepository(this._context);
     this._roleRepository = new RolesRepository(this._context);
 }
Ejemplo n.º 2
0
 public ProductsService()
 {
     _context = new SilberScarvesDbContext();
     _scarfRepo = new ScarfItemRepository(_context);
     _custRepo = new CustomerRepository(_context);
     _orderRepo = new OrderRepository(_context);
     _addrRepo = new AddressRepository(_context);
 }
Ejemplo n.º 3
0
 public AccountService(SilberScarvesDbContext context)
 {
     this._context = context;
     this._customerRepository = new CustomerRepository(context);
     this._addressRepository = new AddressRepository(context);
 }