Exemple #1
0
        public async Task <ActionResult> AddShip([FromBody] Ship ship)
        {
            var result = await _shipService.AddShip(ship);

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

            return(Ok());
        }