Пример #1
0
 public SaleController(ISaleService saleService,
                       IBaseObjectService <User> userService,
                       IBaseObjectService <SaleProduct> saleProductService,
                       IInfoMoneyService infoMoneyService,
                       IBaseObjectService <Partner> partnerService,
                       IBaseObjectService <ProductInformation> productInformationService,
                       IBaseObjectService <SupplyProduct> supplyProductService,
                       IBaseObjectService <Supplier> supplierService,
                       IBaseObjectService <Shop> shopService,
                       IMoneyOperationService moneyOperationService,
                       ShopContext db,
                       ISaleStatisticService saleStatisticService,
                       ISaleInfoService saleInfoService,
                       IProductOperationService productOperationService,
                       IBookingProductInformationService bookingProductInformationService,
                       PostgresContext postgresContext)
 {
     _saleService               = saleService;
     _userService               = userService;
     _saleProductService        = saleProductService;
     _infoMoneyService          = infoMoneyService;
     _partnerService            = partnerService;
     _productInformationService = productInformationService;
     _supplyProductService      = supplyProductService;
     _supplierService           = supplierService;
     _db                               = db;
     _shopService                      = shopService;
     _moneyOperationService            = moneyOperationService;
     _saleStatisticService             = saleStatisticService;
     _saleInfoService                  = saleInfoService;
     _productOperationService          = productOperationService;
     _bookingProductInformationService = bookingProductInformationService;
     _postgresContext                  = postgresContext;
 }
Пример #2
0
 public ManagerController(IBaseObjectService <Partner> partnerService,
                          IBaseObjectService <User> userService,
                          ISaleService saleService,
                          IInfoMoneyService infoMoneyService,
                          IProductService productService,
                          IBaseObjectService <Booking> bookingService,
                          IShopService shopService,
                          IBaseObjectService <BookingProduct> bookingProductService,
                          IBaseObjectService <Category> categoryService,
                          IBaseObjectService <SupplyProduct> supplyProduct,
                          IBaseObjectService <SaleProduct> saleProductService,
                          IBaseObjectService <SaleInformation> saleInformationService,
                          IBaseObjectService <ExpenseCategory> expenseCategoryService,
                          IBaseObjectService <Expense> expenseService,
                          IBaseObjectService <ProductInformation> productInformation,
                          ShopContext db,
                          IProductOperationService productOperationService,
                          IMoneyOperationService moneyOperationService,
                          IMoneyStatisticService moneyStatisticService,
                          IBookingProductInformationService bookingProductInformationService,
                          ISaleInfoService saleInfoService,
                          PostgresContext postgresContext)
 {
     _partnerService          = partnerService;
     _userService             = userService;
     _saleService             = saleService;
     _infoMoneyService        = infoMoneyService;
     _productService          = productService;
     _bookingService          = bookingService;
     _shopService             = shopService;
     _bookingProductService   = bookingProductService;
     _categoryService         = categoryService;
     _supplyProduct           = supplyProduct;
     _saleProductService      = saleProductService;
     _saleInformationService  = saleInformationService;
     _expenseCategoryService  = expenseCategoryService;
     _expenseService          = expenseService;
     _productInformation      = productInformation;
     _productOperationService = productOperationService;
     _db = db;
     _moneyOperationService            = moneyOperationService;
     _moneyStatisticService            = moneyStatisticService;
     _bookingProductInformationService = bookingProductInformationService;
     _saleInfoService = saleInfoService;
     _postgresContext = postgresContext;
 }