public IActionResult CheckOutHistory() { var Models = _ICheckOut.GetAll() .Select(c => new CheckOutListingModel { id = c.id, FullName = c.FullName, Confirm = c.Confirm, LibraryAsset = c.LibraryAsset, Since = c.Since, Until = c.Until }); var checkoutModel = new CheckOutIndexModel { checkOutHistoryModel = Models }; return(View(checkoutModel)); }