示例#1
0
 public void AddTestData(TestModel model)
 {
     //var valResponse = Validator.GetValidationResponseInstance();
     try
     {
         var validationResponse = _modelValidation.Validate(TestModelValidation.ValidateAll_key, model, "billing model can not be empty.");
         if (validationResponse.Messages != null)
         {
             throw new ValidationException(validationResponse);
         }
         _testRepository.AddTestData(model);
     }
     catch (Exception ex)
     {
         var helper = new BusinessException(ex);
         throw helper.GetException();
     }
 }