Ejemplo n.º 1
0
        public List <SetStudy> GetListSetStudy(Int64 pageCurrent)
        {
            SetStudyDAO     setStudyDao = new SetStudyDAO();
            List <SetStudy> result      = setStudyDao.getListSetStudy(pageCurrent);

            return(result);
        }
Ejemplo n.º 2
0
        public List <SetStudy> GetListSetStudyByUser(String username, Int64 pageCurrent)
        {
            SetStudyDAO     setStudyDao = new SetStudyDAO();
            List <SetStudy> result      = setStudyDao.getListSetStudyByUser(username, pageCurrent);

            return(result);
        }
Ejemplo n.º 3
0
 public String AddSetStudy(String username, String title, DateTime createdDate, List <Quiz> listQuiz)
 {
     try
     {
         SetStudyDAO setStudyDao = new SetStudyDAO();
         //setStudyDao.addSetStudy(username, title, createdDate, listQuiz);
         return("Add successful");
     }
     catch (Exception e)
     {
         return(e.ToString());
     }
 }
Ejemplo n.º 4
0
 public String EditSetStudy(Int64 id, String title, DateTime updatedDate, List <Quiz> listQuiz)
 {
     try
     {
         SetStudyDAO setStudyDao = new SetStudyDAO();
         //setStudyDao.editSetStudy(id, title, updatedDate, listQuiz);
         return("Edit successful");
     }
     catch (Exception e)
     {
         return(e.ToString());
     }
 }
Ejemplo n.º 5
0
 public String DeleteSetStudy(Int64 id)
 {
     try
     {
         SetStudyDAO setStudyDao = new SetStudyDAO();
         setStudyDao.deleteSetStudy(id);
         return("Delete successful");
     }
     catch (Exception e)
     {
         return(e.ToString());
     }
 }
Ejemplo n.º 6
0
        public int GetTotalPageSetStudy()
        {
            SetStudyDAO setStudyDao = new SetStudyDAO();

            return(setStudyDao.getTotalPageSetStudy());
        }
Ejemplo n.º 7
0
        public int GetTotalPageSetStudyByUser(String username)
        {
            SetStudyDAO setStudyDao = new SetStudyDAO();

            return(setStudyDao.getTotalPageSetStudyByUser(username));
        }