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