public static CurrentUser FromJson(string json) { return(JsonHelper.DeserializeObject <CurrentUser>(Base64.Base64ToString(Des.DecryptDES(json)))); }
///// <summary> ///// ///// </summary> //public string LoginToken { get; set; } ///// <summary> ///// ///// </summary> //public DateTime LoginTime { get; set; } /// <summary> /// /// </summary> // public List<RoleAuthorize> RoleAuthorizelist { get; set; } public override string ToString() { return(Des.EncryptDES(Base64.StringToBase64(JsonConvert.SerializeObject(this)))); }