Пример #1
0
 public AllService(
     IUnitOfWork uof, ICategoryService cs, IImageBaseService img, IMemberRoleService mrs, IMemberService ms, IOrderService os,
     IOrderDetailService ods, IPaymentService pay, IProductService ps, IShipperService ships, ISupplierService sups,
     DbContext context
     )
 {
     this._uof     = uof ?? throw new ArgumentNullException();
     this._cs      = cs ?? throw new ArgumentNullException();
     this._img     = img ?? throw new ArgumentNullException();
     this._mrs     = mrs ?? throw new ArgumentNullException();
     this._ms      = ms ?? throw new ArgumentNullException();
     this._os      = os ?? throw new ArgumentNullException();
     this._ods     = ods ?? throw new ArgumentNullException();
     this._pays    = pay ?? throw new ArgumentNullException();
     this._ps      = ps ?? throw new ArgumentNullException();
     this._ships   = ships ?? throw new ArgumentNullException();
     this._sups    = sups ?? throw new ArgumentNullException();
     this._context = context ?? throw new ArgumentException();
 }
Пример #2
0
 public Upload(IImageBaseService all)
 {
     this._imgdb = all;
 }