예제 #1
0
        public async Task <IActionResult> DishBadDrinksSuggestion(string dishId)
        {
            if (string.IsNullOrEmpty(dishId))
            {
                return(BadRequest());
            }

            var result = matrixService.GetSpecificDishWithNeverDrinks(dishId);

            if (result.Item1 == null && result.Item2 == null)
            {
                return(Conflict());
            }

            return(Ok(result));
        }