public bool removeRecord <T>(int id) { string table = typeof(T).Name; try { return(WillORM.DeleteRecord(table, id)); } catch { return(false); } }
public static bool RemoveGroupUser(int list_id) { Dictionary <string, string> DS = new Dictionary <string, string>() { { "ID", list_id.ToString() } }; try { return(WillORM.DeleteRecord("USER_GROUP_USER_LIST", DS)); } catch { return(false); } }
public static bool RemoveGroupRight(int group_id) { Dictionary <string, string> DS = new Dictionary <string, string>() { { "USER_GROUP", group_id.ToString() } }; try { return(WillORM.DeleteRecord("USER_GROUP_RIGHT", DS)); } catch { return(false); } }
public static bool DeleteSubmission(int id) { try { return(WillORM.DeleteRecord("HOMEWORK_SUBMISSION_LIST", id)); } catch { return(false); } }
public static bool RemoveGroup(int group_id) { try { return(WillORM.DeleteRecord("USER_GROUP", group_id)); } catch { return(false); } }