Ejemplo n.º 1
0
        public async Task <IActionResult> CreateShip(CreateShipRequest createShipRequest)
        {
            var ship = await _shipService.CreateShip(createShipRequest);

            var shipUri = new Uri($"/ships/{ship.Id}", UriKind.Relative);

            return(Created(shipUri, ship));
        }