public IActionResult Index() { if (_basicSetup.IsFirstTimeUser()) return RedirectToAction(nameof(HomeController.Setup), "Home"); else return View(); }
public void IsFirstTimeUser() { _connectionString.Value = string.Empty; var result = _basicSetupRepository.IsFirstTimeUser(); Assert.True(result); }
public IActionResult Login(string returnUrl) { //-added by roshni if (_basicSetupRepository.IsFirstTimeUser()) { return(RedirectToAction(nameof(HomeController.Setup), "Home")); } ViewData["ReturnUrl"] = returnUrl; return(View()); }