コード例 #1
0
        public void Create(ModelViewModel modelViewModel)
        {
            var model = mapper.Map <Model>(modelViewModel);

            //using(TransactionScope scope = new TransactionScope())
            //{
            //    modelCommandRepository.Create(model);
            //    scope.Complete();
            //}
            modelCommandRepository.Create(model);
        }
コード例 #2
0
        public void Create(FieldViewModel fieldViewModel)
        {
            var field = mapper.Map <Field>(fieldViewModel);

            fieldCommandRepository.Create(field);
        }
コード例 #3
0
        public void Create(SourceViewModel sourceViewModel)
        {
            var source = mapper.Map <Source>(sourceViewModel);

            sourceCommandRepository.Create(source);
        }