public async Task <IActionResult> PutEocsElements(long id, EocsElements eocsElements)
        {
            if (id != eocsElements.EocsElementsId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <EocsElements> > PostEocsElements(EocsElements eocsElements)
        {
            _context.EocsElements.Add(eocsElements);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (EocsElementsExists(eocsElements.EocsElementsId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetEocsElements", new { id = eocsElements.EocsElementsId }, eocsElements));
        }