private void btnupdate_Click(object sender, EventArgs e) { this.LoadMedicinegrp(); obj = new MedicinegrpInfo(); obj.GroupID = txtgrpid.Text; obj.GroupName = txtgrpname.Text; MedicinegrpInfoDAL bllObj = new MedicinegrpInfoDAL(); bllObj.UpdateMedicinegrp(obj); MessageBox.Show("Data successfully Updated!"); this.LoadMedicinegrp(); }
public void UpdateMedicinegrp(MedicinegrpInfo obj) { dalObj = new MedicinegrpInfoDAL(); dalObj.UpdateMedicinegrp(obj); }