示例#1
0
        //cheks if the combination of user and password exists in the database
        public bool validate_user(BUser buser)
        {
            Mediator   m          = new Mediator();
            CountUsers countUsers = new CountUsers(buser.Username, buser.Password);

            if (m.countUsersHandler.Handle(countUsers).response == 1)
            {
                return(true);
            }

            return(false);
        }
 public CountUsersResponse Handle(CountUsers query)
 {
     return(new CountUsersResponse(query.query()));
 }