コード例 #1
0
        public IActionResult Index()
        {
            string UserId = _userManager.GetUserId(HttpContext.User);

            try{
                return(View(_repository.GetWatchlists(UserId)));
            } catch (Exception ex) {
                throw ex;
            }
        }
コード例 #2
0
        public IEnumerable <Watchlist> GetWatchlists()
        {
            var result = _watchlistRepository.GetWatchlists();

            return(result);
        }