Beispiel #1
0
        /// <summary>
        /// Bizs the function login.
        /// </summary>
        /// <param name="Email">The email.</param>
        /// <param name="PassWord">The pass word.</param>
        /// <returns>BizUser.</returns>
        public BizUser BizFuncLogin(string Email, string PassWord)
        {
            BizUser bizUser = new BizUser();

            string Result = BizCall(
                new Action(() =>
            {
                bizUser = baseFuntion.DataFuncLogin(Email);
            }
                           )
                );

            if (Result.Equals("EXITO"))
            {
                if (PasswordStorage.VerifyPassword(PassWord, bizUser.PassWord))
                {
                    return(bizUser);
                }
                else
                {
                    return(null);
                }
            }
            else
            {
                return(null);
            }
        }