public async Task RelayAddUserAsync()
        {
            var request_Body = new StreamReader(Request.Body).ReadToEnd();

            var ash = new AppSettingsHandler();
            var uri = new Uri("http://18.188.13.94/DataSvc/api/user");

            var rp = new RelayPost();
            await rp.RelayAddToDataSvc(uri, request_Body);
        }
Ejemplo n.º 2
0
        public async Task AddImageAsync()
        {
            var request_Body = new StreamReader(Request.Body).ReadToEnd();

            Console.WriteLine("request_Body: {0}", request_Body);

            //get url from appsettings.dev.json
            var ash = new AppSettingsHandler();
            var uri = new Uri("http://18.188.13.94/DataSvc/api/post");

            var rp = new RelayPost();
            await rp.RelayAddToDataSvc(uri, request_Body);
        }