コード例 #1
0
        public HttpResponseMessage Delete(int id)
        {
            try
            {
                appService.Excluir(id);

                return(Request.CreateResponse(HttpStatusCode.OK));
            }
            catch (Exception e)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest, e.Message)); // http 400
            }
        }