Example #1
0
        public WorkoutDTO GetWorkouts()
        {
            WorkoutDTO dto = new WorkoutDTO();

            dto.Workouts       = dao.GetWorkouts();
            dto.ActivityLevels = activityLevelDAO.GetLevels();
            dto.Categories     = workoutCatDAO.GetCategories();
            return(dto);
        }
        public List <WorkoutDetailDTO> GetWorkouts(int ID)
        {
            List <WorkoutDetailDTO> dtoList = new List <WorkoutDetailDTO>();

            dtoList = workoutDAO.GetWorkouts(ID);
            return(dtoList);
        }