public IHttpActionResult PutWorkoutHistory(int id, WorkoutHistory workoutHistory)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostWorkoutHistory(WorkoutHistory workoutHistory)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.WorkoutHistories.Add(workoutHistory);
            db.SaveChanges();

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