public void Delete() { // delete record ActionSettingData settingData = new ActionSettingData(); settingData.DeleteActionSetting(_actionSettingId); }
public ActionSettingCollection(int actionId) { using (SqlDataReader reader = new ActionSettingData().GetActionSettingByActionId(actionId)) { while (reader.Read()) { this.Add(new ActionSetting(reader)); } reader.Close(); } }
public void Save(int actionId) { ActionSettingData data = new ActionSettingData(); data.DeleteActionSettings(actionId); foreach (ActionSetting setting in this) { setting.ActionId = actionId; setting.Save(); } }