예제 #1
0
        public async Task <IKycDocument> AddAsync(IKycDocument kycDocument)
        {
            var newDocument = KycDocumentEntity.Create(kycDocument);
            await _tableStorage.InsertAsync(newDocument);

            return(newDocument);
        }
예제 #2
0
 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;
 }