public HomeworkTypeViewModel() { types = new List <HOMEWORK_TYPE>(); newType = new HOMEWORK_TYPE(); inactiveList = new List <int>(); }
public static int AddType(HOMEWORK_TYPE newType) { try { return(WillORM.InsertRecord(newType)); } catch { return(0); } }