public void Create(ModelViewModel modelViewModel) { var model = mapper.Map <Model>(modelViewModel); //using(TransactionScope scope = new TransactionScope()) //{ // modelCommandRepository.Create(model); // scope.Complete(); //} modelCommandRepository.Create(model); }
public void Create(FieldViewModel fieldViewModel) { var field = mapper.Map <Field>(fieldViewModel); fieldCommandRepository.Create(field); }
public void Create(SourceViewModel sourceViewModel) { var source = mapper.Map <Source>(sourceViewModel); sourceCommandRepository.Create(source); }