Ejemplo n.º 1
0
        public IActionResult AlbumSearch(SearchViewModel search)
        {
            if (ModelState.IsValid)
            {
                TempData["FoundAlbums"] = JsonConvert.SerializeObject(AlbumService.AlbumSearch(search));
                return(RedirectToAction("AlbumSearchResults", "Search"));
            }

            return(View(search));
        }