public List <State> GetStates() { try { var all = _repository.GetAll().ToList(); return(!all.Any() ? new List <State>() : all.ToList()); } catch (Exception ex) { ErrorManager.LogApplicationError(ex.StackTrace, ex.Source, ex.Message); return(null); } }
public List <CompanyInfo> GetCorporateInfoes() { try { var all = _repository.GetAll(); if (all == null || !all.Any()) { return(new List <CompanyInfo>()); } return(all.ToList()); } catch (Exception ex) { ErrorManager.LogApplicationError(ex.StackTrace, ex.Source, ex.Message); return(new List <CompanyInfo>()); } }
public List <BeneficiaryBiometric> GetBeneficiaryBiometrics() { try { var myItemList = _repository.GetAll(); if (myItemList == null || !myItemList.Any()) { return(null); } return(myItemList.ToList()); } catch (Exception ex) { ErrorManager.LogApplicationError(ex.StackTrace, ex.Source, ex.Message); return(null); } }