public async Task <IActionResult> PutEbridges(long id, Ebridges ebridges)
        {
            if (id != ebridges.EbridgesId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <Ebridges> > PostEbridges(Ebridges ebridges)
        {
            _context.Ebridges.Add(ebridges);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (EbridgesExists(ebridges.EbridgesId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetEbridges", new { id = ebridges.EbridgesId }, ebridges));
        }