public ActionResult Aggiungi() { Persone p = new Persone(HostingEnvironment.MapPath(nomeFilee)); p.Aggiungi(); return(View("Index", p)); }
public ActionResult AddPerson() { string fileName = HostingEnvironment.MapPath(@"~/App_Data/dati.xml"); person = new Persone(fileName); person.Aggiungi(); return(View("Index", person)); }
public ActionResult DelSelected() { var p = new Persone(nomeFile); p.Aggiungi(); return(View("XMLReadWrite", p)); }
public ActionResult AddPredefinito() { var p = new Persone(nomeFile); p.Aggiungi(); return(View("XMLReadWrite", p)); }
// GET: Default public ActionResult Index() { string nomeFile = HostingEnvironment.MapPath(@"~/App_Data/dati.xml"); p = new Persone(nomeFile); p.Aggiungi(); return(View(p)); }
public ActionResult XMLReadWrite(int nn = 0) { var p = new Persone(nomeFile); if (nn != 0) { p.Aggiungi(); } return(View(p)); }