Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private List<ValidationResult> CheckRequest<T>(object request, string callerName, string callerFile, int callerLineNumber)
- {
- var validationResultList = new List<ValidationResult>();
- return Validator.TryValidateObject(request, new ValidationContext(request), validationResultList, true)
- ? null
- : validationResultList;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement