private async void LlenarLista() { try { ListaDeProfesiones = ProfesionServices.ObtenerProfesiones().OrderBy(p => p.IdProfesion).ToList(); } catch (System.Exception ex) { await App.Current.MainPage.DisplayAlert("Contratámos - Ppal", string.Concat("Ha ocurrido un problema: ", ex.Message), "Ok"); } }
public OfertasEmpleosViewModel() { ListaDeProfesiones = ProfesionServices.ObtenerProfesiones().OrderBy(p => p.IdProfesion).ToList(); ListaCiudades = clsCiudadesWs.CargarCiudades().OrderBy(c => c.NombreCiudad).ToList(); }