taskManagerApiRest/src/main/java/com/salvador/thiago/taskManagerApiRest/service/TaskService.java
public Task insert(TaskDto objDto) {
		Task task = modelMapper.map(objDto, Task.class);
		task.setDateCreated(new Date());
		task.setStatus(true);
		return repository.save(task);

	}
/**
	   * <p> Responsible method to insert a task and 
	   * send and validate data received from 
	   * persistence layer.
	   * 
	   * Maps one object to another using modelMapper
	   * <p>
	   * 
	   * @param TaskDto
	   * @return Task
	   */
 Responsible method to insert a task and
send and validate data received from
persistence layer.

Maps one object to another using modelMapper


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