예제 #1
0
        /// <summary>
        /// Get All GradeUsStandard List
        /// </summary>
        /// <param name="pageResult"></param>
        /// <returns></returns>
        public GradeUsStandardListModel GetAllGradeUsStandardList(PageResult pageResult)
        {
            logger.Info("Method getAllGradeUsStandardList called.");
            GradeUsStandardListModel gradeUsStandardList = new GradeUsStandardListModel();

            try
            {
                if (TokenManager.CheckToken(pageResult._tenantName + pageResult._userName, pageResult._token))
                {
                    gradeUsStandardList          = this.gradeRepository.GetAllGradeUsStandardList(pageResult);
                    gradeUsStandardList._message = SUCCESS;
                    gradeUsStandardList._failure = false;
                    logger.Info("Method getAllGradeUsStandardList end with success.");
                }
                else
                {
                    gradeUsStandardList._failure = true;
                    gradeUsStandardList._message = TOKENINVALID;
                    return(gradeUsStandardList);
                }
            }
            catch (Exception ex)
            {
                gradeUsStandardList._message = ex.Message;
                gradeUsStandardList._failure = true;
                logger.Error("Method getAllGradeUsStandardList end with error :" + ex.Message);
            }
            return(gradeUsStandardList);
        }
예제 #2
0
        public ActionResult <GradeUsStandardListModel> GetAllCourseStandardList(GradeUsStandardListModel gradeUsStandardListModel)
        {
            GradeUsStandardListModel courseStandardList = new GradeUsStandardListModel();

            try
            {
                courseStandardList = _gradeService.GetAllCourseStandardList(gradeUsStandardListModel);
            }
            catch (Exception es)
            {
                courseStandardList._message = es.Message;
                courseStandardList._failure = true;
            }
            return(courseStandardList);
        }
예제 #3
0
        public ActionResult <GradeUsStandardListModel> GetAllSubjectStandardList(GradeUsStandardListModel gradeUsStandardListModel)
        {
            GradeUsStandardListModel subjectStandardList = new GradeUsStandardListModel();

            try
            {
                subjectStandardList = _gradeService.GetAllSubjectStandardList(gradeUsStandardListModel);
            }
            catch (Exception es)
            {
                subjectStandardList._message = es.Message;
                subjectStandardList._failure = true;
            }
            return(subjectStandardList);
        }
예제 #4
0
        public ActionResult <GradeUsStandardListModel> GetAllGradeUsStandardList(PageResult pageResult)
        {
            GradeUsStandardListModel gradeUsStandardList = new GradeUsStandardListModel();

            try
            {
                gradeUsStandardList = _gradeService.GetAllGradeUsStandardList(pageResult);
            }
            catch (Exception es)
            {
                gradeUsStandardList._message = es.Message;
                gradeUsStandardList._failure = true;
            }
            return(gradeUsStandardList);
        }
예제 #5
0
        /// <summary>
        /// Get All Course Standard List
        /// </summary>
        /// <param name="gradeUsStandardListModel"></param>
        /// <returns></returns>
        public GradeUsStandardListModel GetAllCourseStandardList(GradeUsStandardListModel gradeUsStandardListModel)
        {
            GradeUsStandardListModel courseStandardList = new GradeUsStandardListModel();

            try
            {
                if (TokenManager.CheckToken(gradeUsStandardListModel._tenantName + gradeUsStandardListModel._userName, gradeUsStandardListModel._token))
                {
                    courseStandardList = this.gradeRepository.GetAllCourseStandardList(gradeUsStandardListModel);
                }
                else
                {
                    courseStandardList._failure = true;
                    courseStandardList._message = TOKENINVALID;
                }
            }
            catch (Exception es)
            {
                courseStandardList._failure = true;
                courseStandardList._message = es.Message;
            }
            return(courseStandardList);
        }