Esempio n. 1
0
        public async Task <IActionResult> POST([FromBody] TotalFlowInput tfInput)
        {
            WSTotalFlow       tFlow   = new WSTotalFlow();
            ITimeSeriesOutput results = await tFlow.GetTotalFlowData(tfInput);

            return(new ObjectResult(results));
        }
Esempio n. 2
0
        /// <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);
        }