コード例 #1
0
        public IHttpActionResult GetLessons(int?studentId = null, string startDate = null, string endDate = null, bool isFromCompletion = false)
        {
            // if(!isFromCompletion) CommonTasks.DoCommonTasks();


            return(Ok(LessonsService.GetLessons(studentId, startDate, endDate, isFromCompletion)));
        }
コード例 #2
0
 public IHttpActionResult GetSetMonthlyReports(int id, string date, string text, int type)
 {
     return(Ok(LessonsService.GetSetMonthlyReports(id, date, text, type)));
 }
コード例 #3
0
 public IHttpActionResult GetSetSchedularTask(DataModels.SchedularTasks schedular, int lessonId, int resourceId, int type)
 {
     return(Ok(LessonsService.GetSetSchedularTask(schedular, lessonId, resourceId, type)));
 }
コード例 #4
0
 public IHttpActionResult getifLessonsHaveMoreOneRider(int lessonId)
 {
     return(Ok(LessonsService.GetifLessonsHaveMoreOneRider(lessonId)));
 }
コード例 #5
0
 public IHttpActionResult DeleteOnlyStudentLesson(int lessonId, int userId, bool deleteChildren)
 {
     return(Ok(LessonsService.DeleteOnlyStudentLesson(lessonId, userId, deleteChildren)));
 }
コード例 #6
0
 public IHttpActionResult DeleteLesson(int lessonId, bool deleteChildren)
 {
     LessonsService.DeleteLesson(lessonId, deleteChildren);
     return(Ok());
 }
コード例 #7
0
 public IHttpActionResult UpdateLessonDetails(JObject lesson)
 {
     return(Ok(LessonsService.UpdateLessonDetails(lesson)));
 }
コード例 #8
0
 public IHttpActionResult UpdateLesson(JObject lesson, bool changeChildren, int?lessonsQty)
 {
     return(Ok(LessonsService.UpdateLesson(lesson, changeChildren, lessonsQty)));
 }
コード例 #9
0
 public IHttpActionResult UpdateStudentLessonsStatuses(JArray Statuses)
 {
     LessonsService.UpdateStudentLessonsStatuses(Statuses);
     return(Ok());
 }