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; }
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; }