Ejemplo n.º 1
0
        public async Task <IActionResult> POST([FromBody] SoilMoistureInput evapoInput)
        {
            WSSoilMoisture    evapo   = new WSSoilMoisture();
            ITimeSeriesOutput results = await evapo.GetSoilMoisture(evapoInput);

            results.Metadata = Utilities.Metadata.AddToMetadata("request_url", this.Request.Path, results.Metadata);
            return(new ObjectResult(results));
        }
        public ITimeSeriesOutput POST([FromBody] SoilMoistureInput evapoInput)
        {
            WSSoilMoisture    evapo   = new WSSoilMoisture();
            ITimeSeriesOutput results = evapo.GetSoilMoisture(evapoInput);

            results.Metadata = Utilities.Metadata.AddToMetadata("request_url", this.Request.Path, results.Metadata);
            return(results);
        }