示例#1
0
        public string InsertUser(string Last_Name, string Given_Name, string Middle_Name, string Suffix, string Email_Address, string Username, string Password)
        {
            Person  p  = new Person();
            Account ac = new Account();

            try
            {
                p.InsertPerson(Last_Name, Given_Name, Middle_Name, p.SuffixGetID(Suffix), Email_Address);
            }
            catch
            {
                return("Error in registration, please check whether the Email Address has already been registered before");
            }



            ac.AccountInsert(Username, Password, "User", p.PersonGetID(Email_Address));



            return("Registration Successful!");
        }