public IActionResult CheckYachtActive(int yachtId) { if (yachtId < 0) { return(BadRequest()); } var result = _yachtService.ActiveYacht(yachtId); if (result.IsSuccessStatusCode) { return(Ok(result)); } return(BadRequest()); }