public IActionResult ActiveShop(string ID_Shop) { if (!HttpContext.User.Identity.IsAuthenticated) { return(RedirectToAction("Login", "Account")); } if (!CheckAdmin()) { return(RedirectToAction("index", "Home")); } Shop.Active(ID_Shop); var referrer = Request.Headers["Referer"]; return(Redirect(referrer)); }