public void I_DeleteWorkoutTest()
        {
            var workout = workoutCollectionService.GetWorkouts().Where(x => x.workout_title.Equals("TestServiceWorkout", StringComparison.InvariantCultureIgnoreCase))
                          .FirstOrDefault();

            if (workout != null)
            {
                workoutCollectionService.DeleteWorkout(workout);
                var result = workoutCollectionService.GetWorkout(workout.workout_id);
                Assert.AreEqual(null, result);
            }
        }
 public HttpResponseMessage DeleteWorkout(WorkoutCollection wc)
 {
     try
     {
         var input = Helper.CastObject <workout_collection>(wc);
         _workoutService.DeleteWorkout(input);
     }
     catch (Exception ex)
     {
         _logManager.WriteLog(ex);
     }
     return(ToJson(wc));
 }