Example #1
0
        //验证一个商家,已测
        //验证成功返回1,失败返回0
        public int setSellerValid(int sellerID)
        {
             int result;
            sellerAccess sa = new sellerAccess();
            result = sa.validateSeller(sellerID);
            return result;

        }
Example #2
0
 //注册为商家,已测
 //注册失败返回0,成功返回1
 public int registerAsSeller(string userName, string password, string name,
     string phone, string email, string address)
 {
     int result;
     sellerAccess sa = new sellerAccess();
    result =  sa.insertSeller(userName, password,name,
     phone,email, address);
    return result;
 }
Example #3
0
 //修改商家信息,已测
 //修改成功返回1,失败返回0
 public int updateSeller(int sellerID, string name, string phone,
                                                      string address, string email)
 {
     sellerAccess sa = new sellerAccess();
     int result = sa.updateSeller(sellerID, name, phone,
                                                     address, email);
     return result;
 }