Пример #1
0
        // GET: Home

        /*
         * i: ingredient(s)
         * c: complete (all ingredients in the query must be in the cocktail)
         * f: full  (all ingredients in the cocktail must be in the query)
         * v: vessel
         * n: name of category
         */
        public ActionResult List(List <Ingredients> i, byte c = 0, byte f = 0, List <Vessels> v = null)
        {
            var cocktails = ((i == null && v == null) ?
                             cocktailService.FeaturedCocktails() :
                             getCocktails(i, c, f, v));

            return(JsonContent(cocktails.Select(CocktailSummary)));
        }