Exemplo n.º 1
0
        public async Task <IActionResult> GetUserTaskById([FromQuery] Guid userId, [FromQuery] Guid taskId)
        {
            var userTask = await userTaskService.GetByIdAsync(userId, taskId);

            if (userTask == null)
            {
                return(NotFound());
            }

            return(Ok(mapper.Map <UserTaskResponseDto>(userTask)));
        }