public void Add(NotificationResult notificationResult)
 {
     if (notificationResult != null)
     {
         if (notificationResult.Messages != null && notificationResult.Messages.Count > 0)
         {
             foreach (var message in notificationResult.Messages)
             {
                 Messages.Add(message);
             }
         }
         if (notificationResult.Errors != null && notificationResult.Errors.Count > 0)
         {
             foreach (var error in notificationResult.Errors)
             {
                 Errors.Add(error);
             }
         }
         IsValid = IsValid && notificationResult.IsValid;
     }
 }
 internal void SetNotificationResult(bool isValid)
 {
     NotificationResult         = new NotificationResult();
     NotificationResult.IsValid = isValid;
 }