public void Delete(Domain.MType type) { _typeRepository.DbContext.BeginTransaction(); _typeRepository.Delete(type); _typeRepository.DbContext.CommitTransaction(); }
public void Insert(Domain.MType type) { _typeRepository.DbContext.BeginTransaction(); _typeRepository.Save(type); _typeRepository.DbContext.CommitTransaction(); }