error handling if FR fails
This commit is contained in:
		
							parent
							
								
									fd325afe4f
								
							
						
					
					
						commit
						859b8771a5
					
				| @ -111,10 +111,17 @@ namespace EnotaryoPH.Web.Pages | ||||
|                 Status = false, | ||||
|                 FacePlugins = [] | ||||
|             }; | ||||
|             try | ||||
|             { | ||||
|                 var result = await client.VerifyAsync(faceVerificationRequest); | ||||
|                 var faceMatches = result.Result.SelectMany(x => x.FaceMatches); | ||||
|                 return faceMatches; | ||||
|             } | ||||
|             catch (Exception) | ||||
|             { | ||||
|                 return Enumerable.Empty<FaceMatches>(); | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         [BindProperty] | ||||
|         public string SelfieBase64Image { get; set; } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user