public IActionResult Get(int id) { ShipHullType shipHullType = _context.ShipHullType.FirstOrDefault(c => c.ShipHullTypeId == id); if (shipHullType == null) { return(NotFound()); } return(Json(shipHullType)); }
public IEnumerable <Ship> getShipsByHullType(ShipHullType hullType) => getShipsByHullType(hullType.ToString());