public ActionResult LogOff(string returnUrl) { if (string.IsNullOrWhiteSpace(returnUrl)) { returnUrl = "/"; } Authentication.Security.Logout(); return Redirect(returnUrl); }