public async Task <ActionResult <ExchangeDetailsModel> > CreateExchangeAsync([FromBody] ExchangeCreateModel exchange) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { var createdExchange = await _service.CreateAsync(exchange); return(new ObjectResult(createdExchange) { StatusCode = 201 }); } catch (ArgumentException) { return(BadRequest()); } }