예제 #1
0
        public async Task <IActionResult> GetUserAsync(Guid userId, [FromServices] IUserQuery query)
        {
            UserResponse response = await query.RunAsync(userId);

            return(response == null ? (IActionResult)NotFound() : Ok(response));
        }