예제 #1
0
        /// <summary>
        /// 返回带执行状态的Json
        /// </summary>
        /// <param name="response"></param>
        /// <returns></returns>
        public JsonResult CJson <T>(ITransMessage <T> response, string dateFormateString = null)
        {
            CJsonResult result = new CJsonResult(null, dateFormateString);

            result.Data = response;

            return(result);
        }
예제 #2
0
        /// <summary>
        /// 返回带执行状态的Json
        /// </summary>
        /// <param name="result"></param>
        /// <returns></returns>
        public JsonResult CJson <T>(ITransMessage <T> response, JsonRequestBehavior jsonbehavior, string contentType, string dateFormateString = null)
        {
            CJsonResult result = new CJsonResult(null, dateFormateString);

            result.Data = response;
            result.JsonRequestBehavior = jsonbehavior;
            result.ContentType         = contentType;
            return(result);
        }