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); |                 var selfieEntity = CreateOrUpdateSelfie(selfieImage); | ||||||
|                 selfieEntity.Transaction = CurrentTransaction; |                 selfieEntity.Transaction = CurrentTransaction; | ||||||
|                 if (_notaryoDBContext.Entry(selfieEntity).State == EntityState.Detached) |                 selfieEntity.IdentificationDocumentID = identificationDocument.IdentificationDocumentID; | ||||||
|                 { |                 _notaryoDBContext.UpdateOrCreate(selfieEntity); | ||||||
|                     _notaryoDBContext.Add(selfieEntity); |  | ||||||
|                 } |  | ||||||
|                 else |  | ||||||
|                 { |  | ||||||
|                     _notaryoDBContext.Update(selfieEntity); |  | ||||||
|                 } |  | ||||||
|                 _notaryoDBContext.SaveChanges(); |                 _notaryoDBContext.SaveChanges(); | ||||||
|             } |             } | ||||||
|             return isMatchSuccess; |             return isMatchSuccess; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user