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)); }