public List <wsPortfoliosItem.psPortfoliosItemInfo> GetPortfolioInfoListByCommonId(String uci, String id) { var retPortfolioItemInfoList = new List <wsPortfoliosItem.psPortfoliosItemInfo>(); try { var retVal = PsPortfolio.GetItemListByCommonID(uci, id); retPortfolioItemInfoList.AddRange(retVal.Select(x => PsItem.GetItemInfo(uci, x.UCI))); } catch (Exception ex) { PsLogger.Error(String.Format("Unexcpected GetPortfolioListByCommonID Error: \n{0}\n", ex.Message)); } return(retPortfolioItemInfoList); }
public List <String> GetPortfolioListIdsByCommondId(String uci, String id) { var retPortfolioItemInfoId = new List <String>(); try { var retVal = PsPortfolio.GetItemListByCommonID(uci, id); retPortfolioItemInfoId.AddRange(retVal.Select(psPortfoliosItemInfo => psPortfoliosItemInfo.UCI)); } catch (Exception ex) { PsLogger.Error(String.Format("Unexcpected GetPortfolioListByCommonID Error: \n{0}\n", ex.Message)); throw new Exception(ex.Message, ex.InnerException); } return(retPortfolioItemInfoId); }