public static JSONReturnData GetUserDetails()
        {
            JSONReturnData userObj = new JSONReturnData();
            LoginUser      currentUser;

            try
            {
                if (!GetUserSession(out currentUser))
                {
                    userObj.errorCode    = 1001;
                    userObj.errorMessage = "";
                    return(userObj);
                }
                byte[] EncryptedCurrentpassword;

                AdminManagerSP adminObj = new AdminManagerSP();
                if (adminObj.GetUserDetails(currentUser.CompanyID, currentUser.UserId, out EncryptedCurrentpassword))
                {
                    userObj.errorCode       = 0;
                    userObj.errorMessage    = "";
                    userObj.String_Outvalue = Cryptography.Decrypt(System.Text.Encoding.ASCII.GetString(EncryptedCurrentpassword));
                }
                else
                {
                    userObj.errorCode    = 1;
                    userObj.errorMessage = "Failed to get User List. please try again later";
                }
            }
            catch (Exception ex)
            {
                Utils.Write(ex);
            }

            return(userObj);
        }