예제 #1
0
 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"));
 }
예제 #2
0
 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"));
 }
예제 #3
0
 public virtual ActionResult Excluir(int id, object diff)
 {
     TPreference.Delete(x => x.Client.Id == id);
     TClient.Delete(id);
     return(RedirectToAction("Index"));
 }