Ejemplo n.º 1
0
 public ThongkeController(IProductRepository productRepository,
                          IOrderDetailRepository orderDetailRepository,
                          IOrderBillRepository orderBillRepository)
 {
     this.orderBillRepository   = orderBillRepository;
     this.orderDetailRepository = orderDetailRepository;
     this.productRepository     = productRepository;
 }
Ejemplo n.º 2
0
 public OrderManagerController(IProductRepository productRepository,
                               IOrderBillRepository orderBillRepository,
                               IOrderDetailRepository orderDetailRepository)  //constructor
 {
     this.orderDetailRepository = orderDetailRepository;
     this.orderBillRepository   = orderBillRepository;
     this.productRepository     = productRepository;
 }
Ejemplo n.º 3
0
 public ProductController(IMapper mapper, IProductRepository ProductRepository,
                          ISupplierRepository SupplierRepository, ICategoryRepository CategoryRepository,
                          EFContext dbcontext, IMailService mailService, IWebHostEnvironment env, IOrderBillRepository orderBillRepository)
 {
     this.ProductRepository  = ProductRepository;
     this.SupplierRepository = SupplierRepository;
     this.CategoryRepository = CategoryRepository;
     this._db                 = dbcontext;
     this._mapper             = mapper;
     this.mailService         = mailService; // đưa nó vào hàm khởi tạo đó nha
     _env                     = env;
     this.orderBillRepository = orderBillRepository;
 }