taskManagerApiRest/src/main/java/com/salvador/thiago/taskManagerApiRest/service/TaskService.java
public Task update(TaskDto objDto, Long id) {
		Task task = modelMapper.map(objDto, Task.class);
		task.setId(id);
		task.setDateChange(new Date());
		return repository.save(task);
	}
/**
	   * <p> Responsible method to update a task and 
	   * send and validate data received from 
	   * persistence layer.
	   * 
	   * Maps one object to another using modelMapper
	   * <p>
	   * 
	   * @param TaskDto, Long id
	   * @return Task
	   */
 Responsible method to update a task and
send and validate data received from
persistence layer.

Maps one object to another using modelMapper


@param TaskDto, Long id
@return Task
Responsible method to update a task and send and validate data received from persistence layer . Maps one object to another using modelMapper @param TaskDto Long id @return Task
public Task update(TaskDto objDto, Long id) {
		Task task = modelMapper.map(objDto, Task.class);
		task.setId(id);
		task.setDateChange(new Date());
		return repository.save(task);
	}
public Task update ( TaskDto objDto , Long id ) { Task task = modelMapper . map ( objDto , Task . class ) ; task . setId ( id ) ; task . setDateChange ( new Date ( ) ) ; return repository . save ( task ) ; }
<p> Responsible method to update a task and
 send and validate data received from
 persistence layer.
<p > Responsible method to update a task and send and validate data received from persistence layer .