Exemplo n.º 1
0
        async Task Load()
        {
            IsBusy = true;
            try
            {
                await Task.Delay(2000);

                var datos = await ServerLink.GetDataAsync <List <Models.ContratistaModel> >("Contratista");

                list.Clear();
                foreach (var itm in datos)
                {
                    list.Add(itm);
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
            finally
            {
                IsBusy = false;
            }
        }