public virtual ActionResult Excluir(int id, object diff) { TMovieCategory.Delete(x => x.Movie.Id == id); TMovie.Delete(id); TempData["Alerta"] = new Alert("success", "Filme excluído com sucesso"); return(RedirectToAction("Index")); }
public virtual ActionResult Excluir(int id, object diff) { TReservation.Delete(x => x.Id == id); TMovie.Delete(x => x.Id == id); TIten.Delete(id); return(RedirectToAction("Index")); }