public async Task <IActionResult> UpdatePlanet([FromRoute] int planetId, [FromBody] Planet planet) { var result = await _planetService.GetById(planetId); result.Status = planet.Status; result.Description = planet.Description; _planetService.Update(result); return(Ok(result)); }