Exemplo n.º 1
0
        public async Task <IActionResult> DishGoodDrinksSuggestion(string dishId)
        {
            if (string.IsNullOrEmpty(dishId))
            {
                return(BadRequest());
            }

            var result = matrixService.GetSpecificDishWithGoesWithDrinks(dishId);

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

            return(Ok(result));
        }