public IHttpActionResult PutEducation(int id, EducationDTO education)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != education.EducationID)
            {
                return(BadRequest());
            }

            try
            {
                db.Update(education);
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!EducationExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult PutEducation(int id, EducationDTO education)
        {
            //education = new EducationDTO();
            //education.Degree = "BE CS";
            //education.Description = "na";
            //education.InstituteName = "inst";
            //education.IsActive = true;
            //education.EducationID = id;

            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != education.EducationID)
            {
                return(BadRequest());
            }

            try
            {
                db.Update(education);
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!EducationExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }