示例#1
0
        public static async Task <Institucion> GetDatosInstitucion()
        {
            var p = new ApiParams();

            p.Add("version", Config.Version.Replace("v", ""));

            var datosInst = await APICaller.Call("DatosInstitucionMovil", p);

            return(Institucion.FromJToken(datosInst.Children().FirstOrDefault()));
        }
示例#2
0
 public static async Task <JContainer> Call(string webMethod, ApiParams p)
 {
     return(await SoapClient.Post(Config.ServiceUrl, webMethod, p.ToJson()));
 }