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); }
public async Task Update(IPledge pledge) { await _pledgeRepository.UpdatePledge(pledge); }
public async Task Create(IPledge pledge) { await _pledgeRepository.Create(pledge); }
/// <summary> /// Logs the specified pledge. /// </summary> /// <param name="pledge">The pledge.</param> /// <exception cref="NotImplementedException"></exception> public void Log(IPledge pledge) { throw new NotImplementedException(); }