public IActionResult UpdateYachtPort(YachtPortViewModel model) { if (model.YachtPortId < 1 && model.YachtPortIdNew < 1 && model.YachtPortIdNew < 1) { return(BadRequest()); } var result = _yachtService.UpdateYachtPort(model); if (result.IsSuccessStatusCode) { return(Ok(result)); } return(BadRequest()); }