Ejemplo n.º 1
0
        // Here In this example we will use only ValidateUser method, we will see remaining later like create user,
        //update user change password and more

        public override bool ValidateUser(string username, string password)
        {
            using (AruKamiEntities dc = new AruKamiEntities())
            {
                ObjectParameter Output = new ObjectParameter("responseMessage", typeof(string));
                dc.PR_AdminLogin(username, password, Output);


                if (Output.Value.ToString().Equals("User successfully logged in"))
                {
                    return(true);
                }
                return(false);
            }
        }