public bool InsertNewUserInfo(string email, string password, string name, int gender, DateTime dob, string phonenumber, string address, string image, DateTime created_at, DateTime updated_at) { Store_User Store_User = new Store_User(); Store_User.email = email; Store_User.password = password; Store_User.created_at = created_at; Store_User.updated_at = updated_at; Store_User.name = name; Store_User.gender = gender; Store_User.dob = dob; Store_User.phonenumber = phonenumber; Store_User.address = address; return(SU.ThemStore_User(Store_User)); }
public bool AddUser(string email, string password, string name, int gender, DateTime dob, string phonenumber, string address, string image) { try { Store_User user = new Store_User(); user.email = email; user.password = password; user.name = name; user.gender = gender; user.dob = dob; user.phonenumber = phonenumber; user.address = address; user.image = image; return(sm.ThemStore_User(user)); } catch { return(false); } }