Exemple #1
0
        public IActionResult Index(Persona p)
        {
            if (p == null)
            {
                p = new Persona();
            }

            PersonaDb db = new PersonaDb(connectionString);

            ModelState.Clear();
            p.list = db.GetAll();

            return(View(p));
        }
Exemple #2
0
 //________________________________________________________________________________________________________
 public static List <PersonaDto> GetPersona()
 {
     return(PersonaDb.GetAll());
 }