internal void SignUpUser(ISignedUp user) { userRepository.AddUser(user); AllSignedUpUsers.Add(new UserDTO { UserName = user.UserName, Password = user.Password }); }
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); }