예제 #1
0
        public FlexigridObject GetRecords(string page, string rp, string sortname, string sortorder)
        {
            FlexigridObject fo = new FlexigridObject();

            Common.GetCollections gc = new Common.GetCollections();
            var exercises = gc.GetAllExercises();
            fo.page = "1";
            fo.total = exercises.Count().ToString();
            fo.rows = new List<Exercise>();
            fo.rows = exercises;

            return fo;
        }
예제 #2
0
        public FlexigridObject DoWork()
        {
            FlexigridObject fo = new FlexigridObject();

            Common.GetCollections gc = new Common.GetCollections();
            var exercises = gc.GetAllExercises();
            fo.page = "1";
            fo.total = exercises.Count().ToString();
            fo.rows = new List<Exercise>();
            fo.rows = exercises;

            return fo;
        }