public static bool ChangePassword(int UsersId, string NewPassword)
    {
        var drLogin = new Logins()
        {
            UsersId = UsersId
        }.Select(new Logins()
        {
            LoginId = 0
        }).Rows[0];

        string salt = GetSalt();

        NewPassword = salt + NewPassword;
        CC.EncryptPassword(ref NewPassword);

        new Logins()
        {
            LoginId  = drLogin[CS.LoginId].zToInt(),
            Password = NewPassword,
            PwdSalt  = salt,
        }.UpdateAsync();

        new PasswordHistory()
        {
            LoginId    = drLogin[CS.LoginId].zToInt(),
            Password   = NewPassword,
            PwdSalt    = salt,
            CreateDate = IndianDateTime.Now,
        }.InsertAsync();

        try         //Logout All Other Device
        {
            var dtLoginCooke = new LoginCookie()
            {
                SessionId = UsersId
            }.Select(new LoginCookie()
            {
                LoginCookieId = 0
            });
            foreach (System.Data.DataRow drLoginCooke in dtLoginCooke.Rows)
            {
                new LoginCookie()
                {
                    LoginCookieId = drLoginCooke[CS.LoginCookieId].zToInt()
                }
            }
            .Delete();

            WriteCookies(HttpContext.Current.Request.Cookies[CS._RememberCheckBox] != null && HttpContext.Current.Request.Cookies[CS._RememberCheckBox].Value == CS._Checked);
        }