Beispiel #1
0
        public PagedResult <TrainingPlan> GetWorkoutPlans(Token token, WorkoutPlanSearchCriteria searchCriteria, PartialRetrievingInfo pagerInfo)
        {
            var securityInfo           = SecurityManager.EnsureAuthentication(token);
            WorkoutPlanService service = new WorkoutPlanService(Session, securityInfo, Configuration);

            return(service.GetWorkoutPlans(searchCriteria, pagerInfo));
        }
Beispiel #2
0
        // GET: WorkoutPlan
        public ActionResult Index()
        {
            WorkoutPlanService service = CreateWorkoutPlanService();
            var model = service.GetWorkoutPlans();

            return(View(model));
        }