Пример #1
0
        public bool IsStudentOwing(string id)
        {
            StudentRepo repo = new StudentRepo();

            if (repo.CheckStudentDue(id) > 0)
            {
                Errors.Add(new ValidationError("This resource cannot be reserved since this student is owing us money."));
                return(false);
            }
            return(true);
        }
Пример #2
0
        private bool IsStudentOwing(string id)
        {
            StudentRepo repo = new StudentRepo();

            if (repo.CheckStudentDue(id) > 0)
            {
                Errors.Add(new ValidationError("This student cannot borrow any resources until he pays his due."));
                return(false);
            }
            return(true);
        }
Пример #3
0
        public bool IsStudentOwingDel(string id)
        {
            StudentRepo repo = new StudentRepo();

            if (repo.CheckStudentDue(id) > 0)
            {
                Errors.Add(new ValidationError("Student cannot be deleted since they owe us money."));
                return(false);
            }
            return(true);
        }