コード例 #1
0
 public ActionResult AcceptDelivery(int requestId)
 {
     using (var db = new ADProjectDb())
     {
         representativeService.SetRequestStatusToDelivered(db, requestId);
     }
     return(RedirectToAction("CollectRequestedItems", "Representative"));
 }
コード例 #2
0
 public IHttpActionResult PutItemsToCollect(JsonContainer jsonContainer)
 {
     using (var db = new ADProjectDb())
     {
         int requestId = jsonContainer.RequestId;
         representativeService.SetRequestStatusToDelivered(db, requestId);
         return(Ok());
     }
 }