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)); }
public async Task <Quiz> GetAsync(Guid id) { return(await quizRepo.GetForIdAsync(id)); }