// GET api/artigo/5 public Article Get(string id) { Article artigo = Comercial.GetArtigo(id); if (artigo == null) { throw new HttpResponseException( Request.CreateResponse(HttpStatusCode.NotFound, "O artigo não existe")); } else { return(artigo); } }