public void Delete(Domain.MCity city) { _cityRepository.DbContext.BeginTransaction(); _cityRepository.Delete(city); _cityRepository.DbContext.CommitTransaction(); }
public void Insert(Domain.MCity city) { _cityRepository.DbContext.BeginTransaction(); _cityRepository.Save(city); _cityRepository.DbContext.CommitTransaction(); }