public UnitOfWork(IRepository <Computer> computerRepository, IRepository <ComputerParts> computerPartsRepository, IRepository <Order> orderRepository, IRepository <Owner> ownerRepository, IRepository <Part> partRepository, ComputerServiceDbContext context, UserManager <User> userManager, SignInManager <User> signInManager) { ComputerRepository = computerRepository; ComputerPartsRepository = computerPartsRepository; OrderRepository = orderRepository; OwnerRepository = ownerRepository; PartRepository = partRepository; _context = context; this.UserManager = userManager; SignInManager = signInManager; }
public Repository(ComputerServiceDbContext context) { _context = context; }