public IEnumerable <BusinessUnitDto> BusinessUnitAll() { try { return(_mapper.Map <IEnumerable <BusinessUnitEntity>, IEnumerable <BusinessUnitDto> > (_businessUnitRepository.GetAll().Where(a => a.jda_ip_address.Trim() != ""))); } catch (Exception ex) { logCentral.Error("BusinessUnitAll", ex); throw; } }
////////////////// BUSINESSUNITS /////////////////// public List <BusinessUnit> GetAllBusinessUnits() { return(_repositoryBusinessUnit.GetAll()); }