public AjaxWebResponse CreateErrorResonse(AjaxErrorWebResponse errorInfo) { var res = new AjaxWebResponse(false) { error = errorInfo }; return(res); }
public AjaxWebResponse CreateSuccessResonse <T>(T data) { var res = new AjaxWebResponse(true) { result = data }; return(res); }
public AjaxWebResponse CreateUnAuthorizeResonse(string url = null) { var res = new AjaxWebResponse(false) { unAuthorizedRequest = true, targetUrl = url }; return(res); }
public AjaxWebResponse CreateErrorResonse() { var res = new AjaxWebResponse(false); return(res); }
public AjaxWebResponse CreateSuccessResonse() { var res = new AjaxWebResponse(true); return(res); }