Пример #1
0
 void initData()
 {
     this._serviceProduct   = new ProductService(new ProductRepository());
     this._serviceBillInfo  = new BillInfoService(new BillInfoRepository());
     this._serviceBill      = new BillService(new BillRepository());
     this._serviceTableFood = new TableFoodService(new TableFoodRepository());
 }
Пример #2
0
 void InitData()
 {
     this._serviceTable    = new TableFoodService(new TableFoodRepository());
     this._serviceBillInfo = new BillInfoService(new BillInfoRepository());
     this._serviceBill     = new BillService(new BillRepository());
     this._serviceCategory = new ProductCategoryService(new ProductCategoryRepository());
     this._serviceProduct  = new ProductService(new ProductRepository());
 }
Пример #3
0
 void Init()
 {
     this._serviceBill      = new BillService(new BillRepository());
     this._serviceBillInfo  = new BillInfoService(new BillInfoRepository());
     this._serviceTableFood = new TableFoodService(new TableFoodRepository());
 }
Пример #4
0
 public BillInfoController(IBillInfoService billInfoService, IBillInfoModelService billInfoModelService)
 {
     this.billInfoService      = billInfoService;
     this.billInfoModelService = billInfoModelService;
 }
Пример #5
0
 public BillController(IMapper mapper,
                       IBillInfoService billInfoService)
 {
     _mapper          = mapper;
     _billInfoService = billInfoService;
 }
 public BillInfoModelService(IBillInfoService billInfoService, ICompanyService companyService, IProductService productService)
 {
     this.billInfoService = billInfoService;
     this.companyService  = companyService;
     this.productService  = productService;
 }
Пример #7
0
 void InitData()
 {
     this._serviceBill     = new BillService(new BillRepository());
     this._serviceBillInfo = new BillInfoService(new BillInfoRepository());
 }