public UserRepository( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IOptions <JWTSettings> optionsAccessor, WebshopContext context) { _userManager = userManager; _signInManager = signInManager; _options = optionsAccessor.Value; }
public UnitOfWork( WebshopContext context, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IOptions <JWTSettings> optionsAccessor) { _context = context; Products = new ProductRepository(_context); ShoppingCarts = new ShoppingCartRepository(_context); Orders = new OrderRepository(_context); Users = new UserRepository(userManager, signInManager, optionsAccessor, _context); Customizations = new CustomizationRespository(_context); Auction = new AuctionRepository(_context); Bid = new BidRepository(_context); }
public CustomizationRespository(WebshopContext context) : base(context) { }
public ProductRepository(WebshopContext context) : base(context) { }
public ShoppingCartRepository(WebshopContext context) : base(context) { }
public AuctionRepository(WebshopContext context) : base(context) { }
public OrderRepository(WebshopContext context) : base(context) { }
public BidRepository(WebshopContext context) : base(context) { }