public void registerUser(string userName, string Password, string phoneno, string email, string homeaddress, string pincode) { UserInformation u1 = new UserInformation(); u1.username = userName; u1.Password = Password; u1.Phoneno = phoneno; u1.Email = email; u1.homeAddress = homeaddress; u1.Pincode = pincode; User_DL d1 = new User_DL(); d1.Adduser(u1); }
public bool isValidUser(string userName, string Password) { UserInformation user = new UserInformation(); user.username = userName; user.Password = Password; bool exist = false; User_DL d1 = new User_DL(); if (d1.searchuser(user) == true) { exist = true; } else { exist = false; } return(exist); }