/// <summary> /// 更新交易 /// </summary> /// <param name="id"></param> /// <param name="input"></param> /// <returns></returns> /// <exception cref="UserFriendlyException"></exception> public async Task <PayTradeDto> UpdateAsync(Guid id, UpdatePayTradeInput input) { var payTransaction = await _payTradeRepo.GetAsync(r => r.Id == id); ObjectMapper.Map(input, payTransaction); await _payTradeRepo.UpdateAsync(payTransaction, true); return(ObjectMapper.Map <PayTrade, PayTradeDto>(payTransaction)); }
public virtual Task <PayTradeDto> UpdateAsync(Guid id, UpdatePayTradeInput input) { return(_service.UpdateAsync(id, input)); }