Beispiel #1
0
        // GET: Surveys
        public async Task <IActionResult> Index()
        {
            // clear our cookie
            TempData.Clear();

            // create some test data if table is empty.
            _survey.SeedData();

            _result.SeedData();

            return(View(await _context.Survey.ToListAsync()));
        }