Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public CustomerController(CustomerService customerService, CountryService countryService, OrderService orderService)
 {
     _customerService = customerService;
     _countryService = countryService;
     _orderService = orderService;
 }