public bool UpdatePassword(string emailAdd, string oldPass, string newPass) { bool updated = false; updated = userCtrl.UpdatePassword(emailAdd, oldPass, newPass); if (updated) { try { string subject = "wizzGames - Change Password"; string text = "Someone has just changed the password for your wizzGames account. If it was you, everything is fine. " + "If it was NOT you who changed the password, please contact wizzGames ASAP, so we can fix it for you!"; string[] param = { subject, text }; mc.SendMailParam(param, emailAdd); return(updated); } catch (Exception ex) { throw ex; } } else { return(updated); } }