public static bool CheckResponseSuccess(int code, bool showPopup = true) { if (code == 1) { return(true); } else { if (showPopup) { LPopup.OpenPopupError(code); } return(false); } }