public IEnumerable <Caja> GetAllList(int AgenciaId) { if (!CurrentUnitOfWork.IsFilterEnabled(DataFilters.MustHaveAgency)) { CurrentUnitOfWork.EnableFilter(DataFilters.MustHaveAgency); } using (CurrentUnitOfWork.SetFilterParameter(DataFilters.MustHaveAgency, DataFilters.MustHaveAgencyParam, AgenciaId)) { return(_Repository.GetAll()); } }