private async void LoadDocentes() { var response = await doc.GetAll <Docente>("https://horario-cds.herokuapp.com/api/docente"); if (!response.isSuccess) { IsRefreshing = false; await App.Current.MainPage.DisplayAlert("Error", response.Message, "Ok"); return; } Docentes = (ObservableCollection <Docente>)response.Result; IsRefreshing = false; }
public async Task <ActionResult <DataCollection <DocenteDto> > > GetAll(int page, int take) { return(await _DocenteService.GetAll(page, take)); }