public static bool CreateStudentWorker(int studentID, string name, string position, int color) { StudentWorker newStudentWorker = new StudentWorker(studentID, name, position, color); newStudentWorker.Selected = true; // display the new student worker by default //Call save function from DBMgr bool success = DatabaseManager.SaveStudentWorker(newStudentWorker); if (success) { // go ahead and add student worker so the database does not need to be queried for all student workers immediately allStudentWorkers.Add(newStudentWorker); } return(success); }