void ITestMasterService.CreateTestMaster(TestMaster testMaster) { var validator = validatorFactory.GetValidator <TestMaster>(); validator.ValidateAndThrow(testMaster); testMasterRepository.Add(testMaster); }
void ITestMasterService.CreateTestMaster(TestMasterViewModel testMasterViewModel) { TestMaster testMaster; testMaster = _iMapper.Map <TestMasterViewModel, TestMaster>(testMasterViewModel); testMasterRepository.Add(testMaster); }