public ActionResult DeleteMany(List <int> idsToDelete) { if (ModelState.IsValid) { if (idsToDelete != null) { generoService.RemoveMany(idsToDelete); } } return(RedirectToAction("Index")); }