public ActionResult Index() { ViewData.Model = _readmodel.GetInventoryItems(); return(View()); }
public IActionResult Index() { var model = _readmodel.GetInventoryItems(); return(View(model)); }
public IActionResult Index() { return(View(_readmodel.GetInventoryItems())); }
public InventoryItemListDataCollection GetInventoryItems() { return(new InventoryItemListDataCollection(_readmodel.GetInventoryItems())); }