public async Task ExecuteAssetAsync(string settlementId, string assetId, decimal actualAmount, decimal actualPrice, string userId) { if (string.IsNullOrEmpty(userId)) { throw new ValidationApiException(HttpStatusCode.BadRequest, "User id required"); } try { await _settlementService.ExecuteAssetAsync(settlementId, assetId, actualAmount, actualPrice, userId); } catch (EntityNotFoundException) { throw new ValidationApiException(HttpStatusCode.NotFound, "Settlement not found"); } catch (InvalidOperationException exception) { throw new ValidationApiException(HttpStatusCode.BadRequest, exception.Message); } }