public TexteDto AddTexte(TexteDto texte) { Texte newTexte = texte.ToEntity(); Texte texteCreated = _dbContext.Texte.Add(newTexte); _dbContext.SaveChanges(); return(texteCreated.toDto()); }
public TexteDto AddTexte(TexteDto texte) { Texte newTexte = texte.ToEntity(); Texte texteCreated = _dbContext.Texte.Add(newTexte); _dbContext.SaveChanges(); return(texteCreated.toDto()); }