public void Delete(Lesson entity)
        {
            var result = Message.Warning("Dersi silmek istediğinden emin misin?");

            if (result == System.Windows.Forms.DialogResult.Yes)
            {
                try
                {
                    _lessonDal.Delete(entity);
                    Message.Info("Ders silindi.");
                }
                catch (Exception exp)
                {
                    Message.Error("Ders silinirken hata oluştu!\n" + exp.Message);
                }
            }
        }
 public void Delete(Lesson entity)
 {
     _lessonDal.Delete(entity);
 }
示例#3
0
 public bool Delete(int id)
 {
     return(lessonDal.Delete(id));
 }