Пример #1
0
        public async Task <IActionResult> POST([FromBody] TemperatureInput tempInput)
        {
            WSTemperature     temp    = new WSTemperature();
            ITimeSeriesOutput results = await temp.GetTemperature(tempInput);

            results.Metadata = Utilities.Metadata.AddToMetadata("request_url", this.Request.Path, results.Metadata);
            return(new ObjectResult(results));
        }
Пример #2
0
        public ITimeSeriesOutput POST([FromBody] TemperatureInput tempInput)
        {
            WSTemperature     temp    = new WSTemperature();
            ITimeSeriesOutput results = temp.GetTemperature(tempInput);

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