public async Task <ActionResult> Delete(Guid id)
        {
            if (id == null)
            {
                return(BadRequest());
            }
            var teacher = await quizrepo.GetForIdAsync(id);

            if (teacher == null)
            {
                return(NotFound());
            }
            return(View(teacher));
        }
示例#2
0
 public async Task <Quiz> GetAsync(Guid id)
 {
     return(await quizRepo.GetForIdAsync(id));
 }