public async Task <IActionResult> PutEconnections(long id, Econnections econnections)
        {
            if (id != econnections.EconnectionsId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <Econnections> > PostEconnections(Econnections econnections)
        {
            _context.Econnections.Add(econnections);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (EconnectionsExists(econnections.EconnectionsId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetEconnections", new { id = econnections.EconnectionsId }, econnections));
        }