Beispiel #1
0
        public async Task <ActionResult> Get([FromRoute] string dataPointName, [FromQuery] int?epochFrom = null, [FromQuery] int?epochTo = null)
        {
            DataPointSummaryReadModel result = await _dataPointService.GetSummary(dataPointName, epochFrom, epochTo);

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }
 public async Task <DataPointSummaryReadModel> Get([FromRoute] string dataPointName, [FromQuery] int?epochFrom = null, [FromQuery] int?epochTo = null)
 {
     return(await _dataPointService.GetSummary(dataPointName, epochFrom, epochTo));
 }