Esempio n. 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)));
        }
Esempio n. 2
0
 public IHttpActionResult GetSetMonthlyReports(int id, string date, string text, int type)
 {
     return(Ok(LessonsService.GetSetMonthlyReports(id, date, text, type)));
 }
Esempio n. 3
0
 public IHttpActionResult GetSetSchedularTask(DataModels.SchedularTasks schedular, int lessonId, int resourceId, int type)
 {
     return(Ok(LessonsService.GetSetSchedularTask(schedular, lessonId, resourceId, type)));
 }
Esempio n. 4
0
 public IHttpActionResult getifLessonsHaveMoreOneRider(int lessonId)
 {
     return(Ok(LessonsService.GetifLessonsHaveMoreOneRider(lessonId)));
 }
Esempio n. 5
0
 public IHttpActionResult DeleteOnlyStudentLesson(int lessonId, int userId, bool deleteChildren)
 {
     return(Ok(LessonsService.DeleteOnlyStudentLesson(lessonId, userId, deleteChildren)));
 }
Esempio n. 6
0
 public IHttpActionResult DeleteLesson(int lessonId, bool deleteChildren)
 {
     LessonsService.DeleteLesson(lessonId, deleteChildren);
     return(Ok());
 }
Esempio n. 7
0
 public IHttpActionResult UpdateLessonDetails(JObject lesson)
 {
     return(Ok(LessonsService.UpdateLessonDetails(lesson)));
 }
Esempio n. 8
0
 public IHttpActionResult UpdateLesson(JObject lesson, bool changeChildren, int?lessonsQty)
 {
     return(Ok(LessonsService.UpdateLesson(lesson, changeChildren, lessonsQty)));
 }
Esempio n. 9
0
 public IHttpActionResult UpdateStudentLessonsStatuses(JArray Statuses)
 {
     LessonsService.UpdateStudentLessonsStatuses(Statuses);
     return(Ok());
 }