public void E_GetWorkoutsTest()
        {
            int wId = workoutCollectionService.GetWorkouts().Where(x => x.workout_title.Equals("TestServiceWorkout", StringComparison.InvariantCultureIgnoreCase))
                      .FirstOrDefault().workout_id;
            var result = workoutCollectionService.GetWorkout(wId);

            Assert.AreNotEqual(null, result);
        }
        public HttpResponseMessage GetWorkout(WorkoutCollection wc)
        {
            WorkoutCollection result = new WorkoutCollection();

            try
            {
                var res = _workoutService.GetWorkout(wc.workout_id);
                MapCollection(res, ref result);
            }
            catch (Exception ex)
            {
                _logManager.WriteLog(ex);
            }
            return(ToJson(result));
        }