//pagination, get total
        public int getExamCount(string username, string keyword)
        {
            SearchExamTableAdapter tableAdapter = new SearchExamTableAdapter();
            int count = Convert.ToInt32(tableAdapter.SearchExamCount(username, keyword, null, null, null));

            return(count);
        }
Exemple #2
0
        //pagination, get total count
        public int GetExamCount(string userName, string keyword)
        {
            int count = 0;

            try
            {
                SearchExamTableAdapter tableAdapter = new SearchExamTableAdapter();
                count = Convert.ToInt32(tableAdapter.SearchExamCount(userName, keyword, null, null, null));
            }
            catch (Exception e)
            {
                Log4NetHelper.WriteErrorLog(typeof(ExamManager), e);
            }
            return(count);
        }