package com.app.Services;

//import java.util.Date;
import java.util.List;

import org.springframework.http.ResponseEntity;

import com.app.Dto.AffaireDto;
import com.app.Dto.AffaireSaveMany;
import com.app.exceptions.AffaireNotFoundExcep;


public interface AffaireService {

	Long save (AffaireDto affaire);
	void delete(Long id) throws AffaireNotFoundExcep;
    AffaireDto findById(Long id) throws AffaireNotFoundExcep;
    List<AffaireDto> findAllAffaire();
    void addAffaireToEnfant(String nameEmployee, String nameMission);
	AffaireSaveMany saveAffaire(AffaireSaveMany affaireDtoSavemany);
	
	AffaireDto findBySouscriptionId(Long id) throws AffaireNotFoundExcep;
	//ResponseEntity<AffaireDto> findBySouscriptionId(Long id) throws AffaireNotFoundExcep;
	//List<AffaireDto>affaireByAssure(Long id);/////////////////
	List<AffaireDto> listeraffaireByAssure(Long id);
	//	List<EnfantDto> listerEnfantByAffaire(Long id);
	Long updateDateEffet(Long id, String dateffet);


}
