Esempio n. 1
0
        public async Task <ActionResult> AddPlanet([FromBody] Planet planet)
        {
            var result = await _planetService.AddPlanet(planet);

            if (!result)
            {
                return(BadRequest());
            }
            return(Ok());
        }