protected void btnSaveGiftCert_Click(object sender, EventArgs e) { TAFCert newCert = PopulateTAFCert(); newCert.Id = CertID; TAFCertDAL newDal = new TAFCertDAL(); newDal.SaveTAFContent(newCert); gvTAFCert.DataSource = newDal.GetAllTAFCerts(); gvTAFCert.DataBind(); }
private void Delete(string ID) { int certId = int.Parse(ID); TAFCert newCert = PopulateTAFCert(); newCert.Id = certId; newCert.Active = false; TAFCertDAL newDal = new TAFCertDAL(); newDal.SaveTAFContent(newCert); gvTAFCert.DataSource = newDal.GetAllTAFCerts(); gvTAFCert.DataBind(); }