private void SaveCategory() { try { raceScheduleCategory = new BIZ.RaceScheduleCategory(); GetControlValue(); PopulateBusinessLayer(Common.Common.RaceResult.RaceScheduleCategory); if (raceScheduleCategory.Save()) { ClearControl(); ScheduleCategorySelectAll(); } } catch (Exception ex) { MessageBox.Show(Common.Common.CustomError(ex.Message), "Error"); } }
private void Save() { try { scheduleCategory = new BIZ.RaceScheduleCategory(); GetControlValue(); PopulateBussinessLayer(); if (scheduleCategory.Save()) { ClearControl(); this.txtScheduleCategoryName.Focus(); ScheduleCategorySelectAll(); } } catch (Exception ex) { MessageBox.Show(Common.Common.CustomError(ex.Message), "Error"); } }