Example #1
0
        public string DropEnrolledSchedule(string studentId, int scheduleId)
        {
            var errors = new List<string>();
            var repository = new StudentRepository(this.entities);
            var service = new StudentService(repository);
            service.DropEnrolledSchedule(studentId, scheduleId, ref errors);
            if (errors.Count == 0)
            {
                return "ok";
            }

            return "error";
        }