public async Task <IActionResult> PutTbasicBrakeType(long id, TbasicBrakeType tbasicBrakeType)
        {
            if (id != tbasicBrakeType.TbasicBrakeTypeId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <TbasicBrakeType> > PostTbasicBrakeType(TbasicBrakeType tbasicBrakeType)
        {
            _context.TbasicBrakeType.Add(tbasicBrakeType);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (TbasicBrakeTypeExists(tbasicBrakeType.TbasicBrakeTypeId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetTbasicBrakeType", new { id = tbasicBrakeType.TbasicBrakeTypeId }, tbasicBrakeType));
        }