Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 //________________________________________________________________________________________________________
 public static List <PersonaDto> GetPersona()
 {
     return(PersonaDb.GetAll());
 }