Пример #1
0
        public void UpdateTestMaster(TestMasterViewModel testMasterViewModel)
        {
            TestMaster testMaster;

            testMaster = _iMapper.Map <TestMasterViewModel, TestMaster>(testMasterViewModel);
            testMasterRepository.Update(testMaster, o => o.TestMasterName, o => o.IsActive, o => o.ModifiedBy, o => o.ModifiedOn);
        }
        public void UpdateTestMaster(TestMaster testMaster)
        {
            var validator = validatorFactory.GetValidator <TestMaster>();

            validator.ValidateAndThrow(testMaster);
            testMasterRepository.Update(testMaster);
        }