public IActionResult Index() { if (HttpContext.Session.GetString("AdminId") != null) { return(View(_iBranchManager.GetBranchWithCountryAndCity())); } else { return(RedirectToAction("Index", "Home")); } }
public IActionResult Index() { if (HttpContext.Session.GetString("AdminId") != null) { return(View(_iBranchManager.GetBranchWithCountryAndCity())); } else { return(RedirectToAction("Index", "Home")); } }