示例#1
0
        public TexteDto AddTexte(TexteDto texte)
        {
            Texte newTexte     = texte.ToEntity();
            Texte texteCreated = _dbContext.Texte.Add(newTexte);

            _dbContext.SaveChanges();
            return(texteCreated.toDto());
        }