Exemplo n.º 1
0
        public ActionResult PendingDeliveries()
        {
            var items = _deliveryItemService.GetPendingDeliveryItems().Select(
                di => new DeliveryItemIndexViewModel
            {
                Id       = di.Id,
                JobRef   = String.Format("{0}/{1}", di.JobItem.Job.JobNo, di.JobItem.ItemNo),
                Customer = di.Customer.Name,
                Notes    = di.Notes,
            }).OrderBy(di => di.JobRef).ToList();

            return(View(items));
        }