예제 #1
0
        public static Boolean RegisterUser(RegisterVM registerVm)
        {
            UserMapper userMapper = new UserMapper();
            Samsung_User newUser = new Samsung_User(registerVm.FirstName, registerVm.LastName, registerVm.Zipcode,
                registerVm.DateOfBirth, registerVm.EmailAddress, registerVm.Password);

            Boolean succes = userMapper.CheckUserExistence(newUser);

            if (!succes)
            {
                userMapper.AddUser(newUser);
                return true;
            }
            return false;
        }
예제 #2
0
 public static void GetAllSamsungUsers()
 {
     UserMapper userMapper = new UserMapper();
     Samsung_User userSamsung = new Samsung_User();
     userMapper.GetAllSamsungUsers();
 }