public ActionResult DeleteCogeneratore(DeleteCogeneratoreViewModel model) { DetailsViewModel model2 = new DetailsViewModel(); model2.clt = _data.GetClient(model.clt_Id); model2.imp = _data.GetImpiantoById(model.ipt_Id); _data.DeleteCogeneratore(model.Id); return(RedirectToAction("ImpiantoFullInfo", "Impianto", new { ipt_Id = model2.imp.ipt_Id, clt_Id = model2.clt.clt_Id })); }
public ActionResult DeleteCogeneratore(int cgn_Id, int ipt_Id, int clt_Id) { DeleteCogeneratoreViewModel model = new DeleteCogeneratoreViewModel(); model.Id = cgn_Id; model.clt_Id = clt_Id; model.ipt_Id = ipt_Id; return(PartialView("DeleteCogeneratore", model)); }