public async Task<IActionResult> PutTdecelerationCurve(short id, TdecelerationCurve tdecelerationCurve)
        {
            if (id != tdecelerationCurve.TdecelerationCurveId)
            {
                return BadRequest();
            }

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

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

            return NoContent();
        }
        public async Task<ActionResult<TdecelerationCurve>> PostTdecelerationCurve(TdecelerationCurve tdecelerationCurve)
        {
            _context.TdecelerationCurve.Add(tdecelerationCurve);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (TdecelerationCurveExists(tdecelerationCurve.TdecelerationCurveId))
                {
                    return Conflict();
                }
                else
                {
                    throw;
                }
            }

            return CreatedAtAction("GetTdecelerationCurve", new { id = tdecelerationCurve.TdecelerationCurveId }, tdecelerationCurve);
        }