public void Delete(string id) { CustomersRepository.DeleteCustomer(id); }
public void Put([FromBody] Customer customer) { CustomersRepository.UpdateCustomer(customer); }
public Customer Get(string id) { return(CustomersRepository.GetCustomer(id)); }
public void Post([FromBody] Customer customer) { CustomersRepository.InsertCustomer(customer); }
public List <Customer> Get() { return(CustomersRepository.GetAllCustomers()); }