Пример #1
0
        public ActionResult XML_EditContact(int ctn)
        {
            var     p    = new Persone(nomeFile);
            Persona temp = p.FirstOrDefault(x => x.IdPersona == ctn);

            return(View("XML_AddContact", temp));
        }
Пример #2
0
        public ActionResult AddPredefinito()
        {
            var p = new Persone(nomeFile);

            p.AggiungiPredefinito();

            return(View("XMLReadWrite2", p));
        }
Пример #3
0
        public ActionResult RetContatto(Persona ctn)
        {
            var p = new Persone(nomeFile);

            p.MyAdd(ctn);
            p.Save();

            return(View("XMLReadWrite2", p));
        }
Пример #4
0
        public ActionResult DelSelected(int IdToDel)
        {
            var p = new Persone(nomeFile);

            p.RemoveAll(x => x.IdPersona == IdToDel);
            p.Save();

            return(View("XMLReadWrite2", p));
        }
Пример #5
0
        /// <summary>
        /// - XMLReadWrite2
        /// </summary>
        ///

        public ActionResult XMLReadWrite2()
        {
            var p = new Persone(nomeFile);

            return(View(p));
        }