Esempio n. 1
0
        public async Task <IActionResult> Create(UserTaskRequest request)
        {
            if (request == null)
            {
                return(BadRequest(request));
            }

            var position = _mapper.Map <UserTask>(request);

            var result = await _userTaskService.Create(position);

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

            return(Ok(response));
        }
Esempio n. 2
0
 public IActionResult CreateUserTask([FromBody] UserTaskRequest userTaskRequest)
 {
     // some service call with GetUserId() param
     return(null);
 }