public async Task <ActionResult <ServiceBanque> > PostServiceBanque(ServiceBanque serviceBanque)
        {
            _context.serviceBanques.Add(serviceBanque);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetServiceBanque", new { id = serviceBanque.Id }, serviceBanque));
        }
        public async Task <IActionResult> PutServiceBanque(int id, ServiceBanque serviceBanque)
        {
            if (id != serviceBanque.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }