public IActionResult GetByEnum(PERSON_ON_BOARD_TYPE_ENUM EnumValue) { PersonOnBoardType personOnBoardType = _context.PersonOnBoardType.FirstOrDefault(s => s.EnumValue == EnumValue.ToString()); if (personOnBoardType == null) { return(NotFound()); } return(Json(personOnBoardType)); }
public IActionResult Get(int id) { PersonOnBoardType personOnBoardType = _context.PersonOnBoardType.FirstOrDefault(s => s.PersonOnBoardTypeId == id); if (personOnBoardType == null) { return(NotFound()); } return(Json(personOnBoardType)); }