public Data GetDataById(int id) { using (DbConnectionScope scope = new DbConnectionScope()) { return Repository.Get<IDataRepository>().LoadDataById(id); } }
public Data GetDataById(int id) { using (DbConnectionScope scope = new DbConnectionScope()) { return _repository.GetDataById(id); } }