// GET api/cliente/5 public Client Get(string id) { Client client = Comercial.GetClient(id); if (client == null) { throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound, "O cliente não existe!")); } return(client); }
// GET api/cliente/5 public Client Get(string id) { Client client = Comercial.GetClient(id); if (client == null) { throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound, "O cliente não existe!")); } return(client); }