public async Task <ActionResult <Commande_frs> > PostCommande_frs(Commande_frs commande_frs)
        {
            _context.Commande_frss.Add(commande_frs);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetCommande_frs", new { id = commande_frs.IdCO }, commande_frs));
        }
        public async Task <IActionResult> PutCommande_frs(Guid id, Commande_frs commande_frs)
        {
            if (id != commande_frs.IdCO)
            {
                return(BadRequest());
            }

            _context.Entry(commande_frs).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!Commande_frsExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }