예제 #1
0
파일: OptionsView.cs 프로젝트: paulyc/vrs
        private bool Validate(Options options, ViewModel viewModel)
        {
            var controller        = new OptionsController();
            var validationResults = controller.DoValidation(options);

            var validationHelper = new ValidationModelHelper();

            validationHelper.ApplyValidationResults(validationResults, viewModel);

            return(!validationResults.HasErrors);
        }