taskManagerApiRest/src/main/java/com/salvador/thiago/taskManagerApiRest/service/TaskService.java
public Task deleteById(Long id) {
		Task task = this.findByIdEntity(id);
		task.setDateDeleted(new Date());
		task.setStatus(false);
		return repository.save(task);
		
	}
/**
	   * <p> Responsible method to delete a task by id
	   * 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 delete a task by id
send and validate data received from
persistence layer.

Maps one object to another using modelMapper


@param TaskDto, Long id
@return Task
Responsible method to delete a task by id send and validate data received from persistence layer . Maps one object to another using modelMapper @param TaskDto Long id @return Task
public Task deleteById(Long id) {
		Task task = this.findByIdEntity(id);
		task.setDateDeleted(new Date());
		task.setStatus(false);
		return repository.save(task);
	}
public Task deleteById ( Long id ) { Task task = this . findByIdEntity ( id ) ; task . setDateDeleted ( new Date ( ) ) ; task . setStatus ( false ) ; return repository . save ( task ) ; }
<p> Responsible method to delete a task by id
 send and validate data received from
 persistence layer.
<p > Responsible method to delete a task by id send and validate data received from persistence layer .