public static bool CahngePassword(Guid userGuid, string oldPassword, string newPassword) { Business.User userController = new Business.User(); string currentPassword = userController.GetCurrentPassword(userGuid); try { if (oldPassword == currentPassword) { return(userController.UpdatePassword(userGuid, newPassword) ? true : false); } else { throw new Exception(Language.GetString("InvalidCurrentPassword")); } } catch (Exception ex) { throw ex; } }