예제 #1
0
        public IActionResult GetTimestamps([FromBody] DateTime?dateTime)
        {
            IEnumerable <Timestamp> timestamps;

            try
            {
                timestamps = _timestampService.GetLaterThan(dateTime);
            }
            catch (Exception ex)
            {
                return(NotFound(new { Error = ex.Message }));
            }
            return(Ok(_timestampService.GenerateResponse(timestamps).ToArray()));
        }