コード例 #1
0
        //Create Account
        public string createAccount(string fname, string lname, DateTime dob,
                                    string uName, string password, string emailAdd, string pic)

        {
            account newAccount = new account();

            newAccount.firstName       = fname;
            newAccount.lastName        = lname;
            newAccount.dateOfBirth     = dob.Date;
            newAccount.username        = uName;
            newAccount.password        = password;
            newAccount.emailAdd        = emailAdd;
            newAccount.profile_picture = pic;
            newAccount.bio             = "Say something about yourself";
            return(insertAccount(newAccount));
        }