public async Task <IKycDocument> AddAsync(IKycDocument kycDocument) { var newDocument = KycDocumentEntity.Create(kycDocument); await _tableStorage.InsertAsync(newDocument); return(newDocument); }
public static KycDocumentEntity Create(IKycDocument src) { return(new KycDocumentEntity { PartitionKey = GeneratePartitionKey(src.ClientId), RowKey = GenerateRowKey(src.DocumentId ?? Guid.NewGuid().ToString()), Type = src.Type, Mime = src.Mime, DateTime = src.DateTime, FileName = src.FileName }); }
public static KycDocumentEntity Create(IKycDocument src) { return new KycDocumentEntity { PartitionKey = GeneratePartitionKey(src.ClientId), RowKey = GenerateRowKey(src.DocumentId ?? Guid.NewGuid().ToString()), Type = src.Type, Mime = src.Mime, DateTime = src.DateTime, FileName = src.FileName }; }
public async Task<IKycDocument> AddAsync(IKycDocument kycDocument) { var newDocument = KycDocumentEntity.Create(kycDocument); await _tableStorage.InsertAsync(newDocument); return newDocument; }