Exemplo n.º 1
0
        public async Task <IKycDocument> AddAsync(IKycDocument kycDocument)
        {
            var newDocument = KycDocumentEntity.Create(kycDocument);
            await _tableStorage.InsertAsync(newDocument);

            return(newDocument);
        }
Exemplo n.º 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;
 }