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)); } }