public IPersonResponse GetPersons(PersonRequest request) { var validationResult = this.personRequestValidator.Validate(request); if (!validationResult.IsValid) { List <string> messageError = new List <string>(); foreach (var error in validationResult.Errors) { messageError.Add(error.ErrorMessage); } personResponse.errorMessage = messageError; return(personResponse); } personResponse.person = personData.GetList(); return(personResponse); }