public ProductsController(IUnitOfWork unitOfWork, ImagineHowProjectContext context) { _unitOfWork = unitOfWork; _context = context; }
public ProductRepository(ImagineHowProjectContext context) : base(context) { }
public UnitOfWork(ImagineHowProjectContext context) { _context = context; Products = new ProductRepository(_context); }
public GenericRepository(ImagineHowProjectContext context) { Context = context; }