Ejemplo n.º 1
0
        public async Task <IActionResult> LogoutAsync()
        {
            var logout = await _repo.Logout();

            if (logout)
            {
                return(RedirectToAction("index"));
            }
            return(Json(new Metadata()
            {
                status = logout, data = logout ? "" : "LogOut Failed"
            }));
        }