public IActionResult Index() { var assetModels = _assetsService.GetAll(); var listingResult = assetModels .Select(result => new AssetIndexListingModel { Id = result.Id, ImageUrl = result.ImageUrl, AuthorOrDirectorOrIssue = _assetsService.GetAuthorOrDirectorOrIssue(result.Id), DeweyCallNumber = _assetsService.GetDeweyIndex(result.Id), Title = result.Title, Type = _assetsService.GetType(result.Id) }); var model = new AssetIndexModel { Assets = listingResult }; return(View(model)); }