public List<Absents> GetAbsents(AbsentsFilter absentsFilter = null) { using (IDataProvider provider = base.CreateDataProvider()) using (IAbsentsRepository repository = provider.CreateAbsentsRepository()) return repository.GetAbsents(absentsFilter); }
public List<Absents> GetAbsents(AbsentsFilter absentsFilter = null) { using (IBusinessProvider provider = base.CreateBusinessProvider()) using (IAbsentsBusinessProvider prov = provider.CreateAbsentsBusinessProvider()) return prov.GetAbsents(absentsFilter); }