public async Task UpdatePledge(IPledge pledge)
        {
            var result = await _pledgeTable.MergeAsync(GetPartitionKey(), GetRowKey(pledge.Id), x =>
            {
                Mapper.Map(pledge, x);

                return(x);
            });
        }
        public async Task <string> Create(IPledge pledge)
        {
            var entity = Mapper.Map <PledgeEntity>(pledge);

            entity.PartitionKey = GetPartitionKey();
            entity.RowKey       = GetRowKey(pledge.Id);

            await _pledgeTable.InsertAsync(entity);

            return(entity.ClientId);
        }
Exemple #3
0
 public async Task Update(IPledge pledge)
 {
     await _pledgeRepository.UpdatePledge(pledge);
 }
Exemple #4
0
 public async Task Create(IPledge pledge)
 {
     await _pledgeRepository.Create(pledge);
 }
Exemple #5
0
 /// <summary>
 /// Logs the specified pledge.
 /// </summary>
 /// <param name="pledge">The pledge.</param>
 /// <exception cref="NotImplementedException"></exception>
 public void Log(IPledge pledge)
 {
     throw new NotImplementedException();
 }