public static int GetCourseIDByName(string name) { try { return(SQLAdapter.GetCourseIDByName(name)); } catch (Exception e) { return(0); } }