private void btnSil_Click(object sender, EventArgs e) { TblDemirbasSwitchPoco DemirbasSwitch = new TblDemirbasSwitchPoco(); DemirbasSwitch = _TblDemirbasSwitchBLL.silDemirbasServer(Convert.ToInt32(txtID.Text)); MessageBox.Show("Silme Isleminiz Tamamlanmistir..."); Listele(); }
public TblDemirbasSwitchPoco silDemirbasServer(int id) { TblDemirbasSwitchPoco demirbasSwitch = new TblDemirbasSwitchPoco(); DataTable dataTable = new DataTable(); _TblDemirbasSwitchDAO.deleteDemirbasSwitch(Convert.ToInt32(id)); return(demirbasSwitch); }
private void btnGuncelle_Click(object sender, EventArgs e) { TblDemirbasSwitchPoco DemirbasSwitch = new TblDemirbasSwitchPoco(); DemirbasSwitch = _TblDemirbasSwitchBLL.guncelleDemirbasSwitch(Convert.ToInt32(txtID.Text), txtBulunduguYer.Text, txtMarka.Text, txtAciklama.Text, txtEkBilgi.Text); MessageBox.Show("Guncelleme Isleminiz Tamamlanmistir..."); Listele(); }
public TblDemirbasSwitchPoco guncelleDemirbasSwitch(int id, string bulunduguyer, string marka, string aciklama, string ekbilgi) { TblDemirbasSwitchPoco demirbasSwitch = new TblDemirbasSwitchPoco(); DataTable dataTable = new DataTable(); _TblDemirbasSwitchDAO.updateDemirbasSwitch(id, bulunduguyer, marka, aciklama, ekbilgi); foreach (DataRow dr in dataTable.Rows) { dr["bulunduguyer"] = demirbasSwitch.bulunduguyer; dr["marka"] = demirbasSwitch.marka; dr["aciklama"] = demirbasSwitch.aciklama; dr["ekbilgi"] = demirbasSwitch.ekbilgi; } return(demirbasSwitch); }
public TblDemirbasSwitchPoco kaydetDemirbasSwitch(int id, string bulunduguyer, string marka, string aciklama, string ekbilgi) { TblDemirbasSwitchPoco demirbasSwitch = new TblDemirbasSwitchPoco(); DataTable dataTable = new DataTable(); _TblDemirbasSwitchDAO.insertDemirbasSwitch(id, bulunduguyer, marka, aciklama, ekbilgi); foreach (DataRow dr in dataTable.Rows) { dr["id"] = Convert.ToInt32(demirbasSwitch.id); dr["bulunduguyer"] = demirbasSwitch.bulunduguyer; dr["marka"] = demirbasSwitch.marka; dr["aciklama"] = demirbasSwitch.aciklama; dr["ekbilgi"] = demirbasSwitch.ekbilgi; } return(demirbasSwitch); }