Exemplo n.º 1
0
        public async Task OnGetAsync()
        {
            await _util.SendEmailAsync(log, "MF Judge scorecard", "js");

            JudgeViewPitchesVM = new JudgeViewPitchesVM
            {
                PitchEvents      = await _repository.GetAllPitchEventsAsync(),
                Pitches          = _context.Pitch.Include(a => a.Application).ToList().AsEnumerable(),
                ApplicationUsers = await _repository.GetAllUsersAsync()
            };
        }
Exemplo n.º 2
0
        public async Task OnGetAsync(int id)
        {
            PitchId = id;
            await _util.SendEmailAsync(StaticDetails.Log, "MF Pitch SC get", "PSC");

            ScoreCardFields = await _context.ScoreCardField.Where(x => x.ScoringCategoryId == 1).ToListAsync();

            JudgeViewPitchesVM = new JudgeViewPitchesVM
            {
                PitchEvents      = await _repository.GetAllPitchEventsAsync(),
                Pitches          = _context.Pitch.Include(a => a.Application).ToList().AsEnumerable(),
                ApplicationUsers = await _repository.GetAllUsersAsync()
            };
        }