コード例 #1
0
 public async Task UpdateAsync([FromBody] FundingOperationModel model)
 {
     try
     {
         await _fundingService.UpdateAsync((BalanceOperationType)model.Type, model.Amount, model.Comment,
                                           model.UserId);
     }
     catch (InvalidOperationException exception)
     {
         throw new ValidationApiException(HttpStatusCode.BadRequest, exception.Message);
     }
 }