public ActionResult Reset(string passwordClaimKey) { var email = string.Empty; var platformManagementServiceClient = new PlatformManagementService.PlatformManagementServiceClient(); try { //Get the password claim email from CoreServices platformManagementServiceClient.Open(); email = platformManagementServiceClient.GetLostPasswordClaim(passwordClaimKey, Common.SharedClientKey); //Close the connection WCFManager.CloseConnection(platformManagementServiceClient); } catch (Exception e) { #region Manage Exception string exceptionMessage = e.Message.ToString(); var currentMethod = System.Reflection.MethodBase.GetCurrentMethod(); string currentMethodString = currentMethod.DeclaringType.FullName + "." + currentMethod.Name; // Abort the connection & manage the exception WCFManager.CloseConnection(platformManagementServiceClient, exceptionMessage, currentMethodString); #endregion } if (String.IsNullOrEmpty(email)) { return(Content("Password claim key does not exist.")); } else { var resetPassword = new ResetPassword { Email = email, PasswordClaimKey = passwordClaimKey }; return(View(resetPassword)); } }