Esempio n. 1
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="code"></param>
 /// <param name="msg"></param>
 public AjaxResult(int code, string msg)
 {
     Data = new AjaxBackData(code, msg);
 }
Esempio n. 2
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="ex"></param>
 public AjaxResult(Exception ex)
 {
     Data = new AjaxBackData(ex);
 }
Esempio n. 3
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="data"></param>
 public AjaxResult(dynamic data, int total = 0)
 {
     Data = new AjaxBackData(data, total);
 }