public UnitOfWork(ApShopContext context) { if (context == null) { throw new ArgumentNullException("Context was not supplied"); } _context = context; }
public CartRepository(ApShopContext context) { _dbSet = context.carts; _apShopContext = context; }
public OrderRepository(ApShopContext context) { _context = context; }
public UserRepository(ApShopContext context) { _apShopContext.users = context.users; }
public UserRepository(ApShopContext apShopContext, HashingService hashingService) { _apShopContext = apShopContext; _hashservice = hashingService; }
public CategoryRepository(ApShopContext apShopContext) { _apShopContext = apShopContext; }
public ItemRepository(ApShopContext apShopContext) { _apShopContext = apShopContext; }