示例#1
0
        /// <summary>
        /// GetAll StudentCommentsList
        /// </summary>
        /// <param name="studentCommentListViewModel"></param>
        /// <returns></returns>
        public StudentCommentListViewModel GetAllStudentCommentsList(StudentCommentListViewModel studentCommentListViewModel)
        {
            StudentCommentListViewModel studentCommentsList = new StudentCommentListViewModel();

            if (TokenManager.CheckToken(studentCommentListViewModel._tenantName + studentCommentListViewModel._userName, studentCommentListViewModel._token))
            {
                studentCommentsList = this.studentRepository.GetAllStudentCommentsList(studentCommentListViewModel);
            }
            else
            {
                studentCommentsList._failure = true;
                studentCommentsList._message = TOKENINVALID;
            }
            return(studentCommentsList);
        }
        public ActionResult <StudentCommentListViewModel> GetAllStudentCommentsList(StudentCommentListViewModel studentCommentListViewModel)
        {
            StudentCommentListViewModel studentCommentsList = new StudentCommentListViewModel();

            try
            {
                studentCommentsList = _studentService.GetAllStudentCommentsList(studentCommentListViewModel);
            }
            catch (Exception es)
            {
                studentCommentsList._message = es.Message;
                studentCommentsList._failure = true;
            }
            return(studentCommentsList);
        }