public IActionResult UpdateYachtInfo(YachtUpdateModel model) { if (model.Id < 0 && model == null) { return(BadRequest()); } var result = _yachtService.UpdateYachtInfo(model); if (result.IsSuccessStatusCode) { return(Ok(result)); } return(BadRequest()); }