Beispiel #1
0
        private void ValidarCampos(object obj)
        {
            var erros = ValidacaoCampos.getValidationErros(obj);

            foreach (var error in erros)
            {
                throw new Exception(error.ErrorMessage);
            }
        }