public ActionResult Logout()

in App/src/Events-TenantUserApp/Controllers/AccountController.cs [102:119]


        public ActionResult Logout(string tenant, string email)
        {
            try
            {
                var userSessions = HttpContext.Session.GetObjectFromJson<List<CustomerModel>>("SessionUsers");
                if (userSessions != null)
                {
                    userSessions.Remove(userSessions.First(a => a.Email.ToUpper() == email.ToUpper() && a.TenantName == tenant));
                    HttpContext.Session.SetObjectAsJson("SessionUsers", userSessions);
                }
            }
            catch (Exception ex)
            {
                _logger.LogError(0, ex, "Log out failed for tenant {tenant}", tenant);
                return View("TenantError", tenant);
            }
            return RedirectToAction("Index", "Events", new { tenant });
        }