public PortfolioModel GetPortfolioById(int id) { try { var portfolioDto = _portfolioManager.GetPortfolioById(id); return(_mapper.Map <Portfolio, PortfolioModel>(portfolioDto)); } catch (Exception ex) { throw ex; } }