예제 #1
0
 public ActionResult DeliveryDetails(long id)
 {
     try
     {
         var deliveryDetails = _iDeliveryManager.GetDeliveredOrderDetailsByDeliveryId(id);
         var delivery        = _iDeliveryManager.GetOrderByDeliveryId(id);
         ICollection <ViewClientStockProduct> products = _iDeliveryManager.GetClientStockProductAgeByDeliveryId(id);
         ViewDeliveryModel model = new ViewDeliveryModel
         {
             DeliveryDetailses   = deliveryDetails.ToList(),
             Delivery            = delivery,
             Client              = _iClientManager.GetById(delivery.Client.ClientId),
             ClientStockProducts = products.ToList()
         };
         return(View(model));
     }
     catch (Exception exception)
     {
         Log.WriteErrorLog(exception);
         return(PartialView("_ErrorPartial", exception));
     }
 }