Exemplo n.º 1
0
        public HttpResponseMessage Delete(string id)
        {
            orders orders     = new orders();
            string outMessage = string.Empty;

            if (orders.Delete(id, out outMessage))
            {
                var message = Request.CreateResponse(HttpStatusCode.OK);
                return(message);
            }
            else
            {
                return(Request.CreateErrorResponse(HttpStatusCode.Forbidden, outMessage));
            }
        }