public PersonaDataPageViewModel(INavigationService navigationService) { _navigationService = navigationService; _servicio = new ServicioSqlite(); Persona = new PersonaMS(); AgregarPersonaCmd = new DelegateCommand(AgregarPersonaEjecutar); }
private async void ObtenerDatos() { var mensaje = await _servicio.ObtenerPersonas(); Personas.Clear(); foreach (var item in mensaje) { PersonaMS dato = new PersonaMS() { Carrera = item.Carrera, Ciudad = item.Ciudad, Identificacion = item.Identificacion, Nombre = item.Nombre, PersonaId = item.PersonaId, Telefono = item.Telefono }; Personas.Add(dato); } }