public ProductService(TinyCrmDBcontext db) { db_ = db; }
public OrderService(TinyCrmDBcontext db, ICustomerService customerservice) { db_ = db; customerservice_ = customerservice; }
public CustomerService(TinyCrmDBcontext db) { db_ = db; }
public CustomerController() { dbcontext_ = new TinyCrmDBcontext(); customerService_ = new CustomerService(dbcontext_); }