public void ValidateModel(TModel model) { RulesException.ErrorsForValidationResults(ValidateModelProperties(model)); ValidateModelRules(model); RulesException.ThrowException(); }
public async Task ValidateModelAsync(TModel model) { RulesException.ErrorsForValidationResults(ValidateModelProperties(model)); await ValidateModelRulesAsync(model); RulesException.ThrowException(); }