public ActionResult Details() { List<DeliveryDetailsDomain> deliveries = new List<DeliveryDetailsDomain>(); using (IDeliveryService service = new DeliveryService()) { deliveries = service.GetStuffThatHasBeenDelivered(); } return View("Index"); }
public List<DeliveryDetailsDomain> Details() { List<DeliveryDetailsDomain> deliveries = new List<DeliveryDetailsDomain>(); using (IDeliveryService service = new DeliveryService()) { deliveries = service.GetStuffThatHasBeenDelivered(); } return deliveries; }