Exemplo n.º 1
0
        public HttpResponseMessage PostCustomer(CustomerDto customer)
        {
            ControllerFactory.GetCustomerController().Create(customer);
            var response = Request.CreateResponse<CustomerDto>(HttpStatusCode.Created, customer);

            return response;
        }
Exemplo n.º 2
0
 public void PutCustomer(CustomerDto customer)
 {
     ControllerFactory.GetCustomerController().Update(customer);
 }