public PartialViewResult ViewDeliveryDetails(long deliveryId)
        {
            var deliveryDetails = _iDeliveryManager.GetDeliveredOrderDetailsByDeliveryId(deliveryId);
            var delivery        = _iDeliveryManager.GetOrderByDeliveryId(deliveryId);
            var client          = _iClientManager.GetById(delivery.ClientId);
            var model           = new ViewDeliveryModel
            {
                DeliveryDetailses = deliveryDetails.ToList(),
                Delivery          = delivery,
                Client            = client
            };

            return(PartialView("_ViewDeliveryOrderDetailsModalPartialPage", model));
        }
예제 #2
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));
     }
 }