Exemplo n.º 1
0
 public CustomerController(IToastNotification toastNotification,
                           CustomerServiceInterface _customerService,
                           CustomerRepositoryInterface _customerRepo,
                           SaleServiceInterface _saleService)
 {
     _toastNotification    = toastNotification;
     this._customerService = _customerService;
     this._customerRepo    = _customerRepo;
 }
Exemplo n.º 2
0
 public SaleController(SaleRepositoryInterface _saleRepo,
                       IToastNotification _toastNotification,
                       CustomerRepositoryInterface customerRepo,
                       ItemRepositoryInterface _itemRepo,
                       SaleServiceInterface _saleService,
                       SaleDetailRepositoryInterface _saleDetailRepo)
 {
     this._saleRepo          = _saleRepo;
     _customerRepo           = customerRepo;
     this._itemRepo          = _itemRepo;
     this._toastNotification = _toastNotification;
     this._saleService       = _saleService;
     this._saleDetailRepo    = _saleDetailRepo;
 }