예제 #1
0
        public IActionResult GetInfoYacht(int id)
        {
            if (id < 1)
            {
                return(BadRequest());
            }
            var result = _yachtService.GetYachtInfoYacht(id);

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