public ActionResult ShipOrder(int id)
 {
     using (var cRepository = new CollateralRepository())
     {
         return(View(cRepository.GetPendingOrder(id, false)));
     }
 }
 public ActionResult ViewOrder(int id)
 {
     using (var cRepository = new CollateralRepository())
     {
         return(View(viewName: "NewViewOrder", model: cRepository.GetPendingOrder(id, true)));
     }
 }
        public ActionResult ShipOrder(int id, PendingOrderInformation.ShipmentSummary summary)
        {
            using (var cRepository = new CollateralRepository())
            {
                if (ModelState.IsValid)
                {
                    cRepository.AddOrderShipment(id, summary);

                    return(RedirectToAction("ShipOrder", new { id = id }));
                }

                return(View(cRepository.GetPendingOrder(id, false)));
            }
        }