// GET: api/Comments/2 public async Task <CommentDto> Get(int id) { var comment = await CommentGenericFacade.GetAsync(id); if (comment == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } return(comment); }
// GET: api/Comments/2 public async Task <CommentDto> Get(int id) { var comment = await CommentGenericFacade.GetAsync(id); if (comment == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } return(comment); }