public static async Task <IEnumerable <Obtenercarrerasxcarnet_Result> > Get(Alumnos_GetBindingModel model) { string json = await GetAPI("api/Carreras/" + model.QueryString()); try { JsonArray jsonArray = JsonArray.Parse(json); List <Obtenercarrerasxcarnet_Result> lst = new List <Obtenercarrerasxcarnet_Result>(); foreach (IJsonValue fila in jsonArray) { Obtenercarrerasxcarnet_Result i = new Obtenercarrerasxcarnet_Result(fila); lst.Add(i); } return(lst); } catch (Exception) { rootPage.NotifyUser("Error al procesar los datos obtenidos", NotifyType.ErrorMessage); throw; } }
public static async Task <string> GetNombre(Alumnos_GetBindingModel model) { string json = await GetAPI("api/Alumnos/" + model.QueryString()); try { JsonValue jsonValue = JsonValue.Parse(json); return(jsonValue.GetString()); } catch (Exception) { rootPage.NotifyUser("Error al procesar los datos obtenidos", NotifyType.ErrorMessage); throw; } }