//DIVISION WITH STOCK DEFAULT DATA private void DeafultValueAddToStockDivision() { try { objSetting = new SettingClassBLL(); foreach (var list in objSetting.AllDivisios()) { objSetting = new SettingClassBLL() { stock_lm_type = txtLMType.Text, stock_division = list.ToString(), stock_lm_total = 0 }; objSetting.DefaultStockData(); } MessageBox.Show("Stock default data inserted for new Land Mark Type!", "STOCK", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { MessageBox.Show(ex.Message, "STOCK", MessageBoxButtons.OK, MessageBoxIcon.Error); } }