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)); }
public IActionResult CreateUserTask([FromBody] UserTaskRequest userTaskRequest) { // some service call with GetUserId() param return(null); }