public IActionResult Index() { var models = _interface.GetAllAssets(); var listingResult = models.Select(e => new AssetIndexListingModel { ID = e.ID, imageUrl = e.ImageUrl, title = e.Title, authorOrDirector = _interface.GetAuthorOrDirector(e.ID), deweyCallNumber = _interface.GetDeweyIndex(e.ID), type = _interface.GetType(e.ID) }); var model = new AssetIndexModel() { ListAssets = listingResult }; return(View(model)); }