예제 #1
0
        public IActionResult SetYachtActive(int yachtId, bool isActiveOperation)
        {
            if (yachtId < 0)
            {
                return(BadRequest());
            }
            var result = _yachtService.SetActiveYacht(yachtId, isActiveOperation);

            if (result.IsSuccessStatusCode)
            {
                return(Ok(result));
            }
            return(BadRequest());
        }