public ActionResult Genre(AddGenreViewModel model) { if (!ModelState.IsValid) { return(View(model)); } var genre = _albumService.AddGenre(model.AlbumId, model.Name); return(RedirectToRoute("AlbumDetails", new { id = model.AlbumId })); }