예제 #1
0
 public HttpResponseMessage Put(Order order)
 {
     Repository<Order>.Update(order);
     return Request.CreateResponse(HttpStatusCode.OK);
 }
예제 #2
0
 public HttpResponseMessage Post(Order order)
 {
     var orderId = Repository<Order>.Insert(order);
     return Request.CreateResponse(HttpStatusCode.OK, orderId);
 }