public async Task <ActionResult> MakeMarketTransaction([FromBody] MarketTransaction marketTransaction, int planetId) { var planet = await _planetService.GetPlanetById(planetId); var result = await _planetService.MakeMarketTransaction(planet, marketTransaction); if (result == null) { return(BadRequest()); } return(Ok(result)); }