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); } }