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; }
public static void GetAllSamsungUsers() { UserMapper userMapper = new UserMapper(); Samsung_User userSamsung = new Samsung_User(); userMapper.GetAllSamsungUsers(); }