コード例 #1
0
        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));
 }