public async Task <IActionResult> PutEmileageChanges(long id, EmileageChanges emileageChanges)
        {
            if (id != emileageChanges.EmileageChangesId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <EmileageChanges> > PostEmileageChanges(EmileageChanges emileageChanges)
        {
            _context.EmileageChanges.Add(emileageChanges);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (EmileageChangesExists(emileageChanges.EmileageChangesId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetEmileageChanges", new { id = emileageChanges.EmileageChangesId }, emileageChanges));
        }