public IActionResult Get(int id)
        {
            ShipHullType shipHullType = _context.ShipHullType.FirstOrDefault(c => c.ShipHullTypeId == id);

            if (shipHullType == null)
            {
                return(NotFound());
            }
            return(Json(shipHullType));
        }
Beispiel #2
0
 public IEnumerable <Ship> getShipsByHullType(ShipHullType hullType)
 => getShipsByHullType(hullType.ToString());