Exemplo n.º 1
0
 internal void SignUpUser(ISignedUp user)
 {
     userRepository.AddUser(user);
     AllSignedUpUsers.Add(new UserDTO {
         UserName = user.UserName, Password = user.Password
     });
 }
Exemplo n.º 2
0
        public bool IsUserSignedUp(ISignedUp user) //return if there is signed up user with the input userName and Password
        {
            UserDTO userDTO = AllSignedUpUsers.Where(u => u.UserName == user.UserName && u.Password == user.Password).FirstOrDefault();

            if (userDTO == null)
            {
                return(false);
            }
            return(true);
        }