public async Task <IActionResult> POST([FromBody] TotalFlowInput tfInput) { WSTotalFlow tFlow = new WSTotalFlow(); ITimeSeriesOutput results = await tFlow.GetTotalFlowData(tfInput); return(new ObjectResult(results)); }
/// <summary> /// Get example function. /// </summary> /// <returns></returns> public object GetExamples() { TotalFlowInput example = new TotalFlowInput() { Source = "nldas", DateTimeSpan = new DateTimeSpan() { StartDate = new DateTime(2015, 01, 01), EndDate = new DateTime(2015, 12, 31) }, GeometryType = "huc", GeometryInput = "11010001", }; return(example); }