public async Task <ActionResult <LevelOfEducation> > PostLevelOfEducation(LevelOfEducation levelOfEducation)
        {
            _context.LevelOfEducations.Add(levelOfEducation);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetLevelOfEducation", new { id = levelOfEducation.LevelOfEducationId }, levelOfEducation));
        }
        public async Task <IActionResult> PutLevelOfEducation(int id, LevelOfEducation levelOfEducation)
        {
            if (id != levelOfEducation.LevelOfEducationId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }