Пример #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);
 }