예제 #1
0
        public IActionResult showIngredientes()
        {
            Ingrediente[]  ingredientes = selecao.getIngredientes();
            List <Boolean> nPossui      = new List <bool>();

            if (User.Identity.IsAuthenticated)
            {
                nPossui = selecao.getFavs(User.Identity.Name);
            }



            return(View(new Tuple <IEnumerable <MrVeggie.Models.Ingrediente>, List <Boolean> >(ingredientes, nPossui)));
        }