public async Task <ArticleDTO> UpdateAsync(ArticleDTO objet) { Article entite = MapArticle.ToEntity(objet, false); var lRet = await _repo.UpdateAsync(entite); return(MapArticleDTO.MapDataToDTO(lRet)); }
public async Task <ArticleDTO> CreateAsync(ArticleDTO objet) { Article entite = MapArticle.ToEntity(objet, true); Article lRet = await _repo.CreateAsync(entite); return(MapArticleDTO.MapDataToDTO(lRet)); }