public async Task <IViewComponentResult> InvokeAsync(int id)
        {
            List <Asset> listOfAssets = null;

            if (id == 0)
            {
                listOfAssets = _assetManager.GetAll();
            }
            else
            {
                listOfAssets = _assetManager.GetAllByAssetType(id);
            }

            var assets = listOfAssets.Select(a => new AssetViewModel
            {
                Description  = a.Description,
                Manufacturer = a.Manufacturer.Name,
                AssetType    = a.AssetType.Name,
                TagNumber    = a.TagNumber,
                SerialNumber = a.SerialNumber,
                Id           = a.Id,
            }).ToList();

            return(View(assets));
        }
        public IActionResult Assets(int id)
        {
            //go to the rentals manager, get all the rentals of this property type
            var filteredAssets = _assetManager.GetAllByAssetType(id);
            var result         = $"Asset Count: {filteredAssets.Count}";

            return(Content(result));
        }