public async Task <IActionResult> PutTelementRefInGroup(short id, TelementRefInGroup telementRefInGroup)
        {
            if (id != telementRefInGroup.TelementRefInGroupId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <TelementRefInGroup> > PostTelementRefInGroup(TelementRefInGroup telementRefInGroup)
        {
            _context.TelementRefInGroup.Add(telementRefInGroup);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (TelementRefInGroupExists(telementRefInGroup.TelementRefInGroupId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetTelementRefInGroup", new { id = telementRefInGroup.TelementRefInGroupId }, telementRefInGroup));
        }