Beispiel #1
0
 public async Task <bool> ChangePasswordAsync(DataContract.ChangePasswordRequest request)
 {
     try
     {
         return(await _manager.ChangePasswordAysnc(request.Email, request.OldPassword, request.NewPassword));
     }
     catch (Exception ex)
     {
         Exception newEx;
         var       rethrow = ExceptionPolicy.HandleException("service.policy", ex, out newEx);
         return(false);
     }
 }
 public bool ChangePassword(DataContract.ChangePasswordRequest request)
 {
     try
     {
         return(_manager.ChangePassword(request.Email, request.OldPassword, request.NewPassword));
     }
     catch (Exception ex)
     {
         //Exception newEx;
         //var rethrow = ExceptionPolicy.HandleException("service.policy", ex, out newEx);
         //return false;
         throw ex;
     }
 }