示例#1
0
 public static AjaxResultVM SetSuccess(this AjaxResultVM AR, string Message, object Data)
 {
     AR.Message = Message;
     AR.Status  = Status.Success;
     AR.Data    = Data;
     return(AR);
 }
示例#2
0
 public static AjaxResultVM Setfailure(this AjaxResultVM AR, string Message)
 {
     AR.Message = Message;
     AR.Status  = Status.Error;
     return(AR);
 }
示例#3
0
 public static AjaxResultVM SetWarning(this AjaxResultVM AR, string Message)
 {
     AR.Message = Message;
     AR.Status  = Status.Warning;
     return(AR);
 }
示例#4
0
 public static AjaxResultVM SetSuccess(this AjaxResultVM AR, string Message)
 {
     AR.Message = Message;
     AR.Status  = Status.Success;
     return(AR);
 }
示例#5
0
 public static AjaxResultVM SetInfo(this AjaxResultVM AR, string Message)
 {
     AR.Message = Message;
     AR.Status  = Status.Info;
     return(AR);
 }