Esempio n. 1
0
        public IActionResult GetPersonsTimestampsByModelId(int id, [FromBody] DateTime?dateTime)
        {
            IEnumerable <Timestamp> timestamps;

            try
            {
                timestamps = _timestampService.GetLaterThanByModelId <Person>(id, dateTime);
            }
            catch (Exception ex)
            {
                return(NotFound(new { Error = ex.Message }));
            }
            return(Ok(_timestampService.GenerateResponse(timestamps).ToArray()));
        }