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)); }
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); }