Example #1
0
        public IActionResult Edit()
        {
            var lst   = _context.FAQS.ToList();
            var model = new ListFAQVM {
                Questions = lst
            };

            return(View(model));
        }
Example #2
0
        public IActionResult Index()
        {
            var lst   = _context.FAQS.Where(m => m.IsHidden == false).ToList();
            var model = new ListFAQVM {
                Questions = lst
            };

            return(View(model));
        }