Пример #1
0
        public PortfolioModel FindOrCreate()
        {
            var user      = User.GetUserDetails();
            var portfolio = _portfolioService.FindOrCreate(user.UserId);

            return(new PortfolioModel(portfolio));
        }
        public PortfolioModel FindOrCreate(long containerId)
        {
            var portfolio = _portfolioService.FindOrCreate(UserId, containerId);

            return(new PortfolioModel(portfolio));
        }