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