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

            return "error";
        }