Beispiel #1
0
        public ActionResult GetSingleShip(ApiVersion version, int id)
        {
            ShipEntity shipItem = _shipRepository.GetSingle(id);

            if (shipItem == null)
            {
                return(NotFound());
            }

            return(Ok(ExpandSingleShipItem(shipItem, version)));
        }