Exemplo n.º 1
0
        public async Task <IActionResult> Edit(int id)
        {
            var inventoryEntry = await apiInventoryController.GetByAlbumId(id);

            var editViewModel = new EditEntryViewModel
            {
                Entry      = inventoryEntry,
                AlbumTypes = Enum.GetValues(typeof(AlbumType)).Cast <AlbumType>()
            };

            return(View(editViewModel));
        }