public ActionResult PendingInvoices() { var items = _invoiceItemService.GetPendingInvoiceItems().Select(i => new InvoiceItemIndexViewModel { Id = i.Id, JobItemRef = i.JobItem.GetJobItemRef(), CalibrationPrice = (double)i.CalibrationPrice, CarriagePrice = (double)i.CarriagePrice, Description = i.Description, InvestigationPrice = (double)i.InvestigationPrice, OrderNo = i.OrderNo, PartsPrice = (double)i.PartsPrice, RepairPrice = (double)i.RepairPrice }).OrderBy(i => i.JobItemRef); return(View(new InvoiceItemListViewModel { Items = items, Total = _invoiceItemService.GetPendingInvoiceItemsCount() })); }