public ActionResult Edit([Bind(Include = "Id,NameGenre,CreationDateGenre,Active")] Genre genre) { if (ModelState.IsValid) { var genreReturned = genresService.UpdateGenre(genre); if (genreReturned != null) { return(RedirectToAction("Index")); } else { return(Json(new { Success = false, Text = "Gênero já cadastrado!" })); } } return(View(genre)); }