protected void btnAddNewQual_Click(object sender, EventArgs e) { AddNewQual addNewQual = new AddNewQual(); string newQual = txtNewQual.Text; if (txtNewQual.Text != null) { addNewQual.qualDescription = newQual; BLL_handler.BLL_AddNewQual(addNewQual); } else { Page.ClientScript.RegisterStartupScript(this.GetType(), "Scripts", "<script>alert('No new Qualification entered');</script>"); } gridQuals.DataSource = BLL_handler.BLL_GetAllQualifications(); gridQuals.DataBind(); txtNewQual.Text = null; }
public bool BLL_AddNewQual(AddNewQual addNewQual) { return(dBAccess.AddNewQual(addNewQual)); }