예제 #1
0
 public ActionResult UpdateRetrievalList(RetrievalList retrievalList)
 {
     if (ModelState.IsValid)
     {
         RetrievalList editedRetrieval = reqService.GetRetrievalListById(retrievalList.RetrievalListID);
         List <Item>   items           = reqService.GetDistictItemForRetrievalList(editedRetrieval);
         reqService.SequencedRetrievalList(items, editedRetrieval);
         for (int i = 0; i < editedRetrieval.RetrievalListDetails.Count; i++)
         {
             editedRetrieval.RetrievalListDetails[i].QuantityOffered = retrievalList.RetrievalListDetails[i].QuantityOffered;
         }
         reqService.UpdateRetrievalList(editedRetrieval);
         return(RedirectToAction("NewViewRetrievalList"));
     }
     return(View("~/Views/Store/Clerk/UpdateRetrievalList.cshtml", retrievalList));
 }