public IActionResult Update([FromBody] CrudViewModel <CommentairesdePublic> commentpub)
        {
            CommentairesdePublic commpub = commentpub.value;

            _context.CommentairesdePublic.Update(commpub);
            _context.SaveChanges();
            return(Ok(commpub));
        }
        public IActionResult Remove([FromBody] CrudViewModel <CommentairesdePublic> commentpub)
        {
            CommentairesdePublic commpub = _context.CommentairesdePublic
                                           .Where(x => x.CommentaireId == (int)commentpub.key)
                                           .FirstOrDefault();

            _context.CommentairesdePublic.Remove(commpub);
            _context.SaveChanges();
            return(Ok(commpub));
        }