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)); }
// GET: WorkoutPlan public ActionResult Index() { WorkoutPlanService service = CreateWorkoutPlanService(); var model = service.GetWorkoutPlans(); return(View(model)); }