public ActionResult ForgotPassword(string email = "") { try { Customer cust = new Customer(); cust = cust.GetCustomerByEmail(email); cust.ResetPassword(); TempData["error"] = String.Format("An e-mail has been sent to {0} with information on retrieving your account.", email); return RedirectToAction("Index","Authenticate"); } catch (Exception) { TempData["error"] = "We're sorry we were unable to reset the password on your account."; return RedirectToAction("Forgot","Authenticate"); } }