示例#1
0
 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;
     }
 }
示例#2
0
 ////////////////// BUSINESSUNITS ///////////////////
 public List <BusinessUnit> GetAllBusinessUnits()
 {
     return(_repositoryBusinessUnit.GetAll());
 }