public ActionResult DeleteAgitatore(int Id, int ipt_Id, int clt_Id) { DeleteAgitatoreViewModel model = new DeleteAgitatoreViewModel(); model.Id = Id; model.clt_Id = clt_Id; model.ipt_Id = ipt_Id; return(PartialView("DeleteAgitatore", model)); }
public ActionResult DeleteAgitatore(DeleteAgitatoreViewModel model) { _data.DeleteAgitatore(model.Id); return(RedirectToAction("ImpiantoFullInfo", "Impianto", new { ipt_Id = model.ipt_Id, clt_Id = model.clt_Id })); }