public ActionResult AcceptDelivery(int requestId) { using (var db = new ADProjectDb()) { representativeService.SetRequestStatusToDelivered(db, requestId); } return(RedirectToAction("CollectRequestedItems", "Representative")); }
public IHttpActionResult PutItemsToCollect(JsonContainer jsonContainer) { using (var db = new ADProjectDb()) { int requestId = jsonContainer.RequestId; representativeService.SetRequestStatusToDelivered(db, requestId); return(Ok()); } }