예제 #1
0
        public IActionResult Index()
        {
            var rep              = new MockReadRepository();
            var courses          = rep.GetCourses("4d79c09d-6161-4541-a6de-97daed5ec8b6");
            var course           = rep.GetCourse("4d79c09d-6161-4541-a6de-97daed5ec8b6", 1);
            var Video            = rep.GetVideo("4d79c09d-6161-4541-a6de-97daed5ec8b6", 1);
            var videosForModules = rep.GetVideos("4d79c09d-6161-4541-a6de-97daed5ec8b6", 1);

            if (!_signInManager.IsSignedIn(User))
            {
                return(RedirectToAction("Login", "Account"));
            }
            return(RedirectToAction("Dashboard", "Membership"));
        }
예제 #2
0
        public IActionResult Index()
        {
            var rep     = new MockReadRepository();
            var courses = rep.GetCourses("0830e0ea-293c-41d4-9d28-3c0b36e323f7");
            var course  = rep.GetCourse("0830e0ea-293c-41d4-9d28-3c0b36e323f7", 1);
            var video   = rep.GetVideo("0830e0ea-293c-41d4-9d28-3c0b36e323f7", 1);
            var videos  = rep.GetVideos("0830e0ea-293c-41d4-9d28-3c0b36e323f7", 1);

            if (!_signInManager.IsSignedIn(User))
            {
                return(RedirectToAction("Login", "Account"));
            }

            return(RedirectToAction("Dashboard", "Membership"));
        }