Example #1
0
        public async Task <ActionResult> Logout(LoginParameters p)
        {
            await p.InitValidate(HttpContext).ConfigureAwait(false);

            p.Logout(true);
            HttpContext.Response.Headers.Add("Location", "/");
            return(StatusCode(StatusCodes.Status303SeeOther));
        }