예제 #1
0
        public CLAIM AuthenticateUser(string email, string password)
        {
            CLAIM customer = CLAIMDAL.GetClaim(email);

            if (customer.EMAIL == email && customer.PASSWORD == password)
            {
                return(customer);
            }
            else
            {
                return(null);
            }
        }
예제 #2
0
        // GET: api/Claim/5

        public CLAIM Get([FromUri] string email)
        {
            return(CLAIMDAL.GetClaim(email));
        }