public IActionResult Index()
        {
            var tenantContext = Request.HttpContext.GetTenantContext <ApplicationTenant>();

            if (!_signInManager.IsSignedIn(User))
            {
                return(Redirect("/signup"));
            }

            if (tenantContext.Tenant.Hostnames == null)
            {
                return(View(_tenantResolver.Tenants));
            }

            ViewBag.Claims = User.Claims;

            var videos = _videoStoreService.GetUserVideos(_userManager.GetUserId(User));

            var model = new VideoStoreViewModel
            {
                Videos = videos.Select(v => new VideoViewModel
                {
                    ImagePath   = v.ImagePath,
                    EmbedCode   = v.EmbedCode,
                    Url         = v.Url,
                    Name        = v.Title,
                    Description = v.Description
                }).ToList()
            };

            return(View("Dashboard", model));
        }
        public IActionResult Index()
        {
            var videos = _videoStoreService.GetUserVideos(_userManager.GetUserId(User));

            var model = new VideoStoreViewModel
            {
                Videos = videos.Select(v => new VideoViewModel
                {
                    ImagePath = v.ImagePath,
                    EmbedCode = v.EmbedCode,
                    Url       = v.Url,
                    Name      = v.Title
                }).ToList()
            };

            return(View(model));
        }