public DeveloperDTO GetById(int Id) { DeveloperDTO retour = new DeveloperDTO(); Developer objet = _repo.Get(Id); retour = MapDeveloperDTO.ToDto(objet); return(retour); }
public DeveloperDTO Create(DeveloperDTO objet) { Developer entite = MapDeveloper.ToEntity(objet, true); Developer resultat = _repo.Create(entite); objet = MapDeveloperDTO.ToDto(resultat); return(objet); }
public DeveloperDTO Update(DeveloperDTO objet) { Developer entity = MapDeveloper.ToEntity(objet, false); Developer resultat = _repo.Update(entity); DeveloperDTO retour = MapDeveloperDTO.ToDto(resultat); return(retour); }
public List <DeveloperDTO> ListActive() { List <DeveloperDTO> retour = new List <DeveloperDTO>(); List <Developer> liste = _repo.GetAllActive(); retour = MapDeveloperDTO.ToDto(liste); return(retour); }