public IActionResult Index()
        {
            var assetModels = _assets.GetAll();

            var listingResult = assetModels
                                .Select(a => new AssetIndexListingModel
            {
                Id               = a.Id,
                ImageUrl         = a.ImageUrl,
                AuthorOrDirector = _assets.GetAuthorOrDirector(a.Id),
                Dewey            = _assets.GetDeweyIndex(a.Id),
                CopiesAvailable  = _checkouts.GetAvailableCopies(a.Id),
                Title            = _assets.GetTitle(a.Id),
                Type             = _assets.GetType(a.Id),
                NumberOfCopies   = _checkouts.GetNumberOfCopies(a.Id)
            }).ToList();

            var model = new AssetIndexModel()
            {
                Assets = listingResult
            };

            return(View(model));
        }