protected async Task <T> Post <T>(string uri, object command)
        {
            var request = new DataRequest <T>();
            var json    = await request.Post(uri, command);

            return(json);
        }
        protected static async Task <T> Post <T>(string baseUri, string endpoint, object command, string token = "")
        {
            var request = new DataRequest <T>(baseUri);
            var result  = await request.Post(endpoint, command, token);

            return(result);
        }
Ejemplo n.º 3
0
        public async Task <T> Post <T>(string uri, object command, string token = "")
        {
            var request = new DataRequest <T>(baseUrl);
            var result  = await request.Post(uri, command, token);

            return(result);
        }
        protected async Task <T> Post <T>(string uri, object obj)
        {
            var request = new DataRequest <T>(Endpoint.api);

            return(await request.Post(uri, obj, SessionToken));
        }