fix missing id document id
This commit is contained in:
		
							parent
							
								
									7d1a639329
								
							
						
					
					
						commit
						c07ca4dbac
					
				| @ -62,14 +62,8 @@ namespace EnotaryoPH.Web.Pages | ||||
| 
 | ||||
|                 var selfieEntity = CreateOrUpdateSelfie(selfieImage); | ||||
|                 selfieEntity.Transaction = CurrentTransaction; | ||||
|                 if (_notaryoDBContext.Entry(selfieEntity).State == EntityState.Detached) | ||||
|                 { | ||||
|                     _notaryoDBContext.Add(selfieEntity); | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|                     _notaryoDBContext.Update(selfieEntity); | ||||
|                 } | ||||
|                 selfieEntity.IdentificationDocumentID = identificationDocument.IdentificationDocumentID; | ||||
|                 _notaryoDBContext.UpdateOrCreate(selfieEntity); | ||||
|                 _notaryoDBContext.SaveChanges(); | ||||
|             } | ||||
|             return isMatchSuccess; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user