public IActionResult Index() { var assetModels = _assets.GetAll(); var listingResult = assetModels.Select(result => new AssetIndexListingModel { Id = result.Id, ImageUrl = result.ImageUrl, AuthorOrDirector = _assets.GetAuthorOrDirector(result.Id), DeweyCallNumber = _assets.GetDeveyIndex(result.Id), Title = result.Title, Type = _assets.GetType(result.Id) }); var model = new AssetIndexModel() { Assets = listingResult }; return(View(model)); }