protected bool CheckCommand(Command request) { if (request.IsValid()) { return(true); } foreach (var validationResultError in request.ValidationResult.Errors) { MediatorHandler.PostNotification(new DomainNotification(request.AggregateId.ToString(), validationResultError.ErrorMessage)); } return(false); }