Example #1
0
        public async Task <IActionResult> POST([FromBody] PrecipitationInput precipInput)
        {
            WSPrecipitation   precip  = new WSPrecipitation();
            ITimeSeriesOutput results = await precip.GetPrecipitation(precipInput);

            results.Metadata = Utilities.Metadata.AddToMetadata("request_url", this.Request.Path, results.Metadata);
            return(new ObjectResult(results));
        }
        public ITimeSeriesOutput POST([FromBody] PrecipitationInput precipInput)
        {
            WSPrecipitation   precip  = new WSPrecipitation();
            ITimeSeriesOutput results = precip.GetPrecipitation(precipInput);

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