public async Task <IActionResult> PutTocpCenterSide(byte id, TocpCenterSide tocpCenterSide)
        {
            if (id != tocpCenterSide.TocpCenterSideId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <TocpCenterSide> > PostTocpCenterSide(TocpCenterSide tocpCenterSide)
        {
            _context.TocpCenterSide.Add(tocpCenterSide);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (TocpCenterSideExists(tocpCenterSide.TocpCenterSideId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetTocpCenterSide", new { id = tocpCenterSide.TocpCenterSideId }, tocpCenterSide));
        }