Exemplo n.º 1
0
 public SalesController(ICustomerRepository customerRepository, ISaleRepository saleRepository,
                        ISaleItemRepository saleItemRepository, IStoreSettingRepository storeSettingRepository, IConfiguration configuration)
 {
     this.configuration          = configuration;
     this.customerRepository     = customerRepository;
     this.saleRepository         = saleRepository;
     this.saleItemRepository     = saleItemRepository;
     this.storeSettingRepository = storeSettingRepository;
 }
Exemplo n.º 2
0
 public AdminController(ICustomerRepository customerRepository,
                        IProductRepository productRepository, IStoreSettingRepository storeSettingRepository,
                        ISaleRepository saleRepository)
 {
     this.customerRepository     = customerRepository;
     _productRepository          = productRepository;
     this.storeSettingRepository = storeSettingRepository;
     this.saleRepository         = saleRepository;
 }
Exemplo n.º 3
0
 public SalesController(ICustomerRepository customerRepository,
                        ISaleRepository saleRepository,
                        IProductRepository productRepository,
                        INirRepository nirRepository,
                        INirItemRepository nirItemRepository,
                        ISupplierRepository supplierRepository,
                        ISaleItemRepository saleItemRepository,
                        IStoreSettingRepository storeSettingRepository,
                        IConfiguration configuration,
                        InvoiceDbContext context)
 {
     this.nirRepository          = nirRepository;
     this.productRepository      = productRepository;
     this.nirItemRepository      = nirItemRepository;
     this.supplierRepository     = supplierRepository;
     this.configuration          = configuration;
     this.customerRepository     = customerRepository;
     this.saleRepository         = saleRepository;
     this.saleItemRepository     = saleItemRepository;
     this.storeSettingRepository = storeSettingRepository;
     _context = context;
 }