private int GetNextQuestionSetID() { List <QuestionSet> qSets = SqlManager.GetAllQuestionSets(); int nextID = 0; if (qSets != null) { foreach (QuestionSet qSet in qSets) { if (qSet.UniqueID > nextID) { nextID = qSet.UniqueID; } } } nextID = nextID + 1; return(nextID); }
private static int GetNextQuestionSetId() { var qSets = SqlManager.GetAllQuestionSets(-1, ""); var nextId = 0; if (qSets != null) { foreach (var qSet in qSets) { if (qSet.UniqueID > nextId) { nextId = qSet.UniqueID; } } } nextId += 1; return(nextId); }
public List <QuestionSet> GetStenerList() { List <QuestionSet> steners = SqlManager.GetAllQuestionSets(); return(steners); }
public List <QuestionSet> GetStenerList() { var steners = SqlManager.GetAllQuestionSets(-1, ""); return(steners); }
public List <QuestionSet> GetSubmittedQuestionSets() { var qSets = SqlManager.GetAllQuestionSets(-1, "SUBMITTED"); return(qSets); }
public List <QuestionSet> GetQuestionSetsForDepartment(int departmentID) { var qSets = SqlManager.GetAllQuestionSets(departmentID, ""); return(qSets); }