Beispiel #1
0
        // 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);
        }