public IActionResult Update([FromBody] CrudViewModel <MessagePersonnalise> message)
        {
            MessagePersonnalise shipmentType = message.value;

            _context.MessagePersonnalise.Update(shipmentType);
            _context.SaveChanges();
            return(Ok(shipmentType));
        }
        public IActionResult Insert([FromBody] CrudViewModel <MessagePersonnalise> message)
        {
            MessagePersonnalise mess = message.value;

            _context.MessagePersonnalise.Add(mess);
            _context.SaveChanges();
            return(Ok(mess));
        }
        public IActionResult Remove([FromBody] CrudViewModel <MessagePersonnalise> message)
        {
            MessagePersonnalise mess = _context.MessagePersonnalise
                                       .Where(x => x.Id_Mes == (int)message.key)
                                       .FirstOrDefault();

            _context.MessagePersonnalise.Remove(mess);
            _context.SaveChanges();
            return(Ok(mess));
        }