Example #1
0
 //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");
     }
 }
Example #2
0
 /// <summary>
 /// 逻辑删除
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public bool Del(int id)
 {
     return(dal.Delete(id) == 1);
 }