예제 #1
0
 public IActionResult Index()
 {
     if (_basicSetup.IsFirstTimeUser())
         return RedirectToAction(nameof(HomeController.Setup), "Home");
     else
         return View();
 }
예제 #2
0
        public void IsFirstTimeUser()
        {
            _connectionString.Value = string.Empty;
            var result = _basicSetupRepository.IsFirstTimeUser();

            Assert.True(result);
        }
예제 #3
0
        public IActionResult Login(string returnUrl)
        {
            //-added by roshni
            if (_basicSetupRepository.IsFirstTimeUser())
            {
                return(RedirectToAction(nameof(HomeController.Setup), "Home"));
            }

            ViewData["ReturnUrl"] = returnUrl;
            return(View());
        }