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

            return response;
        }
예제 #2
0
 public void PutCustomer(CustomerDto customer)
 {
     ControllerFactory.GetCustomerController().Update(customer);
 }