//Manager Delete Event// private void BtnDelete_Click(object sender, EventArgs e) { try { DialogResult r = MessageBox.Show("Əminsinizmi.?", "Silməyə", MessageBoxButtons.YesNo); if (r == DialogResult.Yes) { _managerDal.Delete(_manager); Reset(); } } catch { MessageBox.Show("Bazada Bele bir Data Movcuddur"); } }
/// <summary> /// 逻辑删除 /// </summary> /// <param name="id"></param> /// <returns></returns> public bool Del(int id) { return(dal.Delete(id) == 1); }