public IHttpActionResult PutExercise_Type(int id, Exercise_Type exercise_Type)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != exercise_Type.Id)
            {
                return BadRequest();
            }

            db.Entry(exercise_Type).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!Exercise_TypeExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostExercise_Type(Exercise_Type exercise_Type)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.Exercise_Type.Add(exercise_Type);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = exercise_Type.Id }, exercise_Type);
        }