public bool CanLoginViaDomain(string uName, string uPwd, string Domain, out string Msg)
        {
            var personAddress = PerManager.GetPerson(Domain + @"\" + uName);

            if (personAddress == null)
            {
                Msg = "User Name is Incorrect";
                return(false);
            }

            var bLogin = PersonManagementSP.VerifyUserCredentials(uName, uPwd, Domain, false);

            if (bLogin)
            {
                Msg = "Login Success";
            }
            else
            {
                Msg = "Password is incorrect";
            }

            return(bLogin);
        }
        public bool UpdatePwd(string uName, string uPwd, string uNewPwd, out string Msg)
        {
            var personAddress = PerManager.GetPerson(uName);

            if (personAddress == null)
            {
                Msg = "User Name is Incorrect";
                return(false);
            }

            var bLogin = PersonManagementSP.VerifyUserCredentials(uName, uPwd, "", false);

            if (bLogin)
            {
                PersonManagementSP.ChangePersonPasswordCallMethod(uName, uPwd, uNewPwd);
                Msg = "Password Updated Success";
            }
            else
            {
                Msg = "Password is incorrect";
            }

            return(bLogin);
        }