Example #1
0
        public IActionResult Index(int id)
        {
            var flower = FlowerDB.GetById(id);

            return(View(flower));
        }
Example #2
0
        [ResponseCache(Duration = 30)] // взяла Response вместо output, Rider зависимости путает
        public IActionResult Index()
        {
            var flowers = FlowerDB.GetFlowers();

            return(View(flowers.Values.ToList()));
        }