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); }
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); }
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); }