public ActionResult SaveSubscriptionInfo(UserModel.User user) { if (ModelState.IsValid) { if (user.CancelSubscription(User.Identity.Name, user.CancelComments)) { var subscriptionId = user.GetSubscriptionID(User.Identity.Name); var result = Gateway.BrainTreeGateway.Subscription.Cancel(subscriptionId); //Authentication HttpCookie userNameCookie = new HttpCookie("QueueViewUserName"); DateTime now = DateTime.Now; userNameCookie.Value = User.Identity.Name; userNameCookie.Expires = now.AddDays(-1D); Response.Cookies.Add(userNameCookie); FormsAuthentication.SignOut(); } else { //Fail return RedirectToAction("Error", "User"); } } return RedirectToAction("CancelSuccess", "Home"); }