コード例 #1
0
        /// <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));
        }
コード例 #2
0
 public virtual Task <PayTradeDto> UpdateAsync(Guid id, UpdatePayTradeInput input)
 {
     return(_service.UpdateAsync(id, input));
 }