public async Task <IActionResult> UpdateTrade(UpdateTradeRequest request) { try { return(Ok(new Success(await Mediator.Send(request)))); } catch (Exception exception) { return(Ok(new InternalServerError(exception))); } }
public async Task <ApiResponse <UpdateTradeResponse> > UpdateTrade(UpdateTradeRequest request) { await SetHeader(); return(await _httpClient.PutJsonAsync <ApiResponse <UpdateTradeResponse> >(Constants.URI.Trades.UpdateTrade, request)); }