Esempio n. 1
0
        /// <summary>
        ///  返回Json格式数据(重载)
        /// </summary>
        /// <param name="states"></param>
        /// <param name="resultObject"></param>
        /// <param name="message"></param>
        /// <param name="errorMessage"></param>
        /// <returns></returns>
        public ActionResult AjaxJson(bool states, Object resultObject, string message, string errorMessage)
        {
            AjaxReturnData returnData = new AjaxReturnData();

            returnData.States       = states;
            returnData.Data         = resultObject;
            returnData.Message      = message;
            returnData.ErrorMessage = errorMessage;
            return(AjaxJson(returnData));
        }
Esempio n. 2
0
 /// <summary>
 /// 返回Json格式数据
 /// </summary>
 /// <param name="returnData"></param>
 /// <returns></returns>
 public ActionResult AjaxJson(AjaxReturnData returnData)
 {
     return(this.Json(returnData));
 }