public ActionResult <Student360ScheduleCourseSectionListViewModel> ScheduleCoursesForStudent360(Student360ScheduleCourseSectionListViewModel student360ScheduleCourseSectionListViewModel)
        {
            Student360ScheduleCourseSectionListViewModel courseListView = new Student360ScheduleCourseSectionListViewModel();

            try
            {
                courseListView = _studentScheduleService.ScheduleCoursesForStudent360(student360ScheduleCourseSectionListViewModel);
            }
            catch (Exception es)
            {
                courseListView._failure = true;
                courseListView._message = es.Message;
            }
            return(courseListView);
        }
示例#2
0
        public Student360ScheduleCourseSectionListViewModel ScheduleCourseSectionListForStudent360(Student360ScheduleCourseSectionListViewModel student360ScheduleCourseSectionListViewModel)
        {
            Student360ScheduleCourseSectionListViewModel courseListView = new Student360ScheduleCourseSectionListViewModel();

            try
            {
                if (TokenManager.CheckToken(student360ScheduleCourseSectionListViewModel._tenantName + student360ScheduleCourseSectionListViewModel._userName, student360ScheduleCourseSectionListViewModel._token))
                {
                    courseListView = this.studentScheduleRepository.ScheduleCourseSectionListForStudent360(student360ScheduleCourseSectionListViewModel);
                }
                else
                {
                    courseListView._failure = true;
                    courseListView._message = TOKENINVALID;
                }
            }
            catch (Exception es)
            {
                courseListView._failure = true;
                courseListView._message = es.Message;
            }
            return(courseListView);
        }