예제 #1
0
        public async Task <IActionResult> Activity([FromRoute] Guid id, CancellationToken ct)
        {
            if (!ModelState.IsValid || id == Guid.Empty)
            {
                return(BadRequest(ModelState));
            }

            try
            {
                var response = await _service.GetActivity(id, ct);

                return(Ok(response));
            }
            catch (Exception exc)
            {
                return(Json(exc));
            }
        }