public void AddTask(Task task) { //if(task.DateTask< DateTime.Today) // throw new Exception("BL :the date have passed already"); myDal.AddTask(task); }