public static IHttpActionResult JsonOk <TData>(this ApiController controller, TData data = null)
            where TData : class
        {
            var result = new OkJsonResultModel <TData>
            {
                Status = "ok",
                Data   = data
            };

            return(ResolveDependencies(controller, (negotiator, request, formatters) => new OkNegotiatedContentResult <OkJsonResultModel <TData> >(result, negotiator, request, formatters)));
        }
        public static ActionResult JsonOk <TData>(this Controller controller, TData data = null)
            where TData : class
        {
            var result = new OkJsonResultModel <TData>
            {
                Status = "ok",
                Data   = data
            };

            return(new CamelCasePropertyJsonResult
            {
                Data = result,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }