public static MarginTradingPaymentLogEntity Create(IMarginTradingPaymentLog src)
 {
     return(new MarginTradingPaymentLogEntity
     {
         PartitionKey = GeneratePartitionKey(src.ClientId),
         Amount = src.Amount,
         AccountId = src.AccountId,
         ClientId = src.ClientId,
         DateTime = src.DateTime,
         Message = src.Message,
         TransactionId = src.TransactionId,
         IsError = src.IsError
     });
 }
        public Task CreateAsync(IMarginTradingPaymentLog record)
        {
            var newEntity = MarginTradingPaymentLogEntity.Create(record);

            return(_tableStorage.InsertAndGenerateRowKeyAsDateTimeAsync(newEntity, newEntity.DateTime));
        }