예제 #1
0
        public async Task <ActionResult <AnnounceResponse> > Get([FromQuery] AnnounceRequest request, string userId)
        {
            try
            {
                var result = await _tracker.Announce(request, userId);

                return(Ok(result));
            }
            catch (Exception exception)
            {
                _logger.LogError(exception, exception.Message);
                return(StatusCode((int)HttpStatusCode.InternalServerError, exception.Message));
            }
        }