예제 #1
0
        public async Task <IActionResult> GetUserTaskById(int taskId)
        {
            var position = await _userTaskService.GetById(taskId);

            if (position == null)
            {
                return(NotFound($"Task with Id {taskId}"));
            }

            var response = _mapper.Map <UserTaskResponse>(position);

            return(Ok(response));
        }