public bool DeleteTask(int id)
 {
     try
     {
         return(_taskDal.DeleteTask(id));
     }
     catch (Exception e)
     {
         _logger.Error("Exception Thrown", e);
         throw;
     }
 }