public ProductController(IUnitOfWork unitOfWork, IWebHostEnvironment webHost, IorwoodDbContext context) { ProductVM = new ProductUpsertViewModel(); _webHost = webHost; _unitOfWork = unitOfWork; _context = context; }
public UnitOfWork(IorwoodDbContext context) { _context = context; Category = new CategoryRepository(_context); Extra = new ExtraRepository(_context); Unit = new UnitRepository(_context); Product = new ProductRepository(_context); OrderHeader = new OrderHeaderRepository(_context); OrderDetails = new OrderDetailsRepository(_context); StockRepository = new StockRepository(_context); RefundHeader = new RefundHeaderRepository(_context); RefundDetail = new RefundDetailRepository(_context); CurrentMovement = new CurrentMovementRepositroy(_context); AccountingBook = new AccountingBookRepository(_context); UserApplication = new UserApplicationRepository(_context); }
public StockRepository(IorwoodDbContext context) : base(context) { _context = context; }
public ProductRepository(IorwoodDbContext context) : base(context) { _context = context; }
public CategoryRepository(IorwoodDbContext context) : base(context) { _context = context; }
public DBInitializer(IorwoodDbContext db, UserManager <IdentityUser> userManager, RoleManager <IdentityRole> roleManager) { _db = db; _userManager = userManager; _roleManager = roleManager; }
public UserApplicationRepository(IorwoodDbContext context) : base(context) { _context = context; }
public OrderHeaderRepository(IorwoodDbContext context) : base(context) { _context = context; }
public CurrentMovementRepositroy(IorwoodDbContext context) : base(context) { _context = context; }
public OrderDetailsRepository(IorwoodDbContext context) : base(context) { _context = context; }
public RefundDetailRepository(IorwoodDbContext context) : base(context) { _context = context; }
public AccountingBookRepository(IorwoodDbContext context) : base(context) { _context = context; }
public UnitRepository(IorwoodDbContext context) : base(context) { _context = context; }
public ExtraRepository(IorwoodDbContext context) : base(context) { _context = context; }