public async Task <IActionResult> PutTcontrollerTechnologyType(byte id, TcontrollerTechnologyType tcontrollerTechnologyType)
        {
            if (id != tcontrollerTechnologyType.TcontrollerTechnologyTypeId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <TcontrollerTechnologyType> > PostTcontrollerTechnologyType(TcontrollerTechnologyType tcontrollerTechnologyType)
        {
            _context.TcontrollerTechnologyType.Add(tcontrollerTechnologyType);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (TcontrollerTechnologyTypeExists(tcontrollerTechnologyType.TcontrollerTechnologyTypeId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetTcontrollerTechnologyType", new { id = tcontrollerTechnologyType.TcontrollerTechnologyTypeId }, tcontrollerTechnologyType));
        }