public async Task <IActionResult> PutCarModelSmokeMeter(int id, CarModelSmokeMeter carModelSmokeMeter)
        {
            if (id != carModelSmokeMeter.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <CarModelSmokeMeter> > PostCarModelSmokeMeter(CarModelSmokeMeter carModelSmokeMeter)
        {
            _context.CarModelSmokeMeter.Add(carModelSmokeMeter);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetCarModelSmokeMeter", new { id = carModelSmokeMeter.Id }, carModelSmokeMeter));
        }