public OrderService( ICustomerService customers, Data.TinyCrmDbContext context) { context_ = context; customers_ = customers; }
public OrderService( ICustomerService customers, IProductService products, Data.TinyCrmDbContext context) { context_ = context; customers_ = customers; products_ = products; }
public CustomerService(Data.TinyCrmDbContext context) { context_ = context ?? throw new ArgumentException(nameof(context)); }
public ProductService(Data.TinyCrmDbContext dbContext) { context = dbContext; }