public HttpResponseMessage PostCustomer(CustomerDto customer) { ControllerFactory.GetCustomerController().Create(customer); var response = Request.CreateResponse<CustomerDto>(HttpStatusCode.Created, customer); return response; }
public void PutCustomer(CustomerDto customer) { ControllerFactory.GetCustomerController().Update(customer); }