Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
0
        public GeneralResponse CheckDetails(string password)
        {
            GeneralResponse gr = new GeneralResponse();
            gr.IsSuccess = false;
            if (password == "truby")
            {
                Common.GetCollections gc = new GetCollections();
                gr = gc.GetDetails(password);
            }
            else
            {
                gr.Message = "Password is incorrect!!!";
            }

            return gr;
        }
Ejemplo n.º 6
0
        public List <PieResponse> GetRecordsForGraph(string graphType)
        {
            Common.GetCollections gc = new Common.GetCollections();

            return(gc.GetAllExercisesForGraph(graphType));
        }
Ejemplo n.º 7
0
 public List <Exercise> GetAllExercises()
 {
     Common.GetCollections gc = new Common.GetCollections();
     return(gc.GetAllExercises());
 }
Ejemplo n.º 8
0
        public List<PieResponse> GetRecordsForGraph(string graphType)
        {
            Common.GetCollections gc = new Common.GetCollections();

            return gc.GetAllExercisesForGraph(graphType);
        }
Ejemplo n.º 9
0
 public List<Exercise> GetAllExercises()
 {
     Common.GetCollections gc = new Common.GetCollections();
     return gc.GetAllExercises();
 }