Exemplo n.º 1
0
        public HttpResponseMessage Delete(Guid id)
        {
            if (id == null)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest, "Id inválido."));
            }

            _service.Excluir(id);

            return(Request.CreateResponse(HttpStatusCode.NoContent));
        }