// 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));
        }
Exemplo n.º 2
0
 public async Task <Answers> GetAsync(Guid id)
 {
     return(await answerrepo.GetForIdAsync(id));
 }