コード例 #1
0
 public IEnumerable <PortfolioModel> GetPortfolios(int pageSize, int pageIndex)
 {
     try
     {
         var portfolioDto = _portfolioManager.GetAllPortfolios(pageSize, pageIndex);
         if (portfolioDto == null)
         {
             return(null);
         }
         return(_mapper.Map <IEnumerable <Portfolio>, IEnumerable <PortfolioModel> >(portfolioDto));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }