public async Task <IActionResult> PutCarPostDataSmokeMeter(long id, CarPostDataSmokeMeter carPostDataSmokeMeter)
        {
            if (id != carPostDataSmokeMeter.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <CarPostDataSmokeMeter> > PostCarPostDataSmokeMeter(CarPostDataSmokeMeter carPostDataSmokeMeter)
        {
            _context.CarPostDataSmokeMeter.Add(carPostDataSmokeMeter);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetCarPostDataSmokeMeter", new { id = carPostDataSmokeMeter.Id }, carPostDataSmokeMeter));
        }