public bool Create(WorkoutLogDTO w)
        {
            //IF NOT EQUAL CARDIO AND WEIGHTLIFTING return false
            if (!(w.WorkoutType.Equals("Cardio")) && !(w.WorkoutType.Equals("WeightLifting")))
            {
                return(false);
            }
            //check if inputs are ints, if string it will return false
            //Cardio types have an initialized 0 for reps/sets
            if (!(w.Reps % 1 == 0))
            {
                return(false);
            }
            if (!(w.Sets % 1 == 0))
            {
                return(false);
            }
            var gateway = new WorkoutLogGateway();

            //no transitive property
            //data structure must be considered when transferring to gateway
            return(gateway.CreateWorkoutLog(w));
        }
        //Returns Review objects to front end, ReviewMessage, Rating, and Datetime
        public IEnumerable <WorkoutLogDTO> GetUserWorkouts(UsernameDTO obj)
        {
            var gateway = new WorkoutLogGateway();

            return(gateway.GetWorkouts(obj));
        }
        public IEnumerable <WorkoutLogDTO> GetWorkout(UsernameDTO obj)
        {
            WorkoutLogGateway service = new WorkoutLogGateway();

            return(service.GetWorkouts(obj));
        }