// GET: Answers/Delete/5 public async Task <ActionResult> Delete(Guid id) { if (id == null) { return(BadRequest()); } var answer = await answerRepo.GetForIdAsync(id); if (answer == null) { return(NotFound()); } return(View(answer)); }
public async Task <Answers> GetAsync(Guid id) { return(await answerrepo.GetForIdAsync(id)); }