public IActionResult Index() { string UserId = _userManager.GetUserId(HttpContext.User); try{ return(View(_repository.GetWatchlists(UserId))); } catch (Exception ex) { throw ex; } }
public IEnumerable <Watchlist> GetWatchlists() { var result = _watchlistRepository.GetWatchlists(); return(result); }