Exemple #1
0
        public async Task <IActionResult> Index()
        {
            var model   = new AttendanceViewModel();
            var groupid = _configuration.GetValue <int>("GroupId");

            model.People = await _dbHandler.GetPeopleFromGroup(groupid);

            model.GuestCount = 0;
            model.Date       = DateTime.Now;
            return(View(model));
        }