示例#1
0
        public async Task <IActionResult> GetShipDetail([FromRoute] long shipId)
        {
            var ship = await shipService.GetShipDetail(shipId);

            if (ship == null)
            {
                return(NotFound(new ResponseDto {
                    Status = "error", Message = $"{shipId} not found"
                }));
            }
            return(Ok(new ShipDto(ship)));
        }