Exemplo n.º 1
0
        protected new virtual HttpResponseMessage Ok <T>(T data = null) where T : class
        {
            HttpResponseMessage message;

            if (data == null)
            {
                message = Request.CreateResponse(HttpStatusCode.OK);
                return(message);
            }
            var response = SuccessResponse <T> .Success(data);

            message = Request.CreateResponse(HttpStatusCode.OK, response);
            return(message);
        }