コード例 #1
0
        public ActionResult Detail(string type)
        {
            PersonalizedCardProvider provider = new PersonalizedCardProvider();
            SuggestionItem           model    = provider.GetByType(type);

            model.Foods.ForEach((food) =>
            {
                food.Description = "Bacon ipsum dolor amet venison ground round jerky prosciutto short ribs. Chuck short ribs ground round porchetta, landjaeger turkey pastrami sirloin jerky. Brisket boudin short ribs swine leberkas beef ribs alcatra ham capicola pork loin turducken rump. ";
            });
            return(View(model));
        }
コード例 #2
0
        public ActionResult Index()
        {
            PersonalizedCardProvider provider = new PersonalizedCardProvider();
            FinancialModel           finmod   = arionHelper.GetFinancialStatus();
            SuperModel model = new SuperModel();

            model.Finance   = finmod;
            model.FoodCards = provider.GetMealPlan("low");



            return(View(model));
        }