public override ActionResult Execute(IEnumerable<Customer> customers, object config, CommerceInstance instance) { var service = new CustomerService(instance); foreach (var customer in customers) { service.Delete(customer); } return null; }
public CustomerController(CustomerService customerService, CountryService countryService, OrderService orderService) { _customerService = customerService; _countryService = countryService; _orderService = orderService; }