public void insert(Add_countryBLL objectBLL) { try { int var = 0; SqlCommand cmd = new SqlCommand("add_country", con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@country_name", objectBLL.Country_name); con.Open(); var = cmd.ExecuteNonQuery(); if (var > 0) { objectBLL.Status = true; } } catch (Exception ex) { String msg = ex.Message; } finally { con.Close(); con.Dispose(); } }
public void insert(Add_countryBLL objectBLL) { // objectDLL.insert(objectBLL); objectDLL.insert(objectBLL); }