public async Task <IDCardPhotoRecord> AddAsync(IDCardPhotoRecordDto dto, CancellationToken token = default) { using (var db = new GuoGuoCommunityContext()) { var entity = db.IDCardPhotoRecords.Add(new IDCardPhotoRecord { ApplicationRecordId = dto.ApplicationRecordId, Message = dto.Message, OwnerCertificationAnnexId = dto.OwnerCertificationAnnexId, PhotoBase64 = dto.PhotoBase64, CreateOperationTime = dto.OperationTime, CreateOperationUserId = dto.OperationUserId }); await db.SaveChangesAsync(token); return(entity); } }
public Task UpdateAsync(IDCardPhotoRecordDto dto, CancellationToken token = default) { throw new NotImplementedException(); }
public Task <List <IDCardPhotoRecord> > GetListIncludeAsync(IDCardPhotoRecordDto dto, CancellationToken token = default) { throw new NotImplementedException(); }