Beispiel #1
0
        public int addSeller(string LName, string FName, string PhoneNbr, string Mail, string City, string Password)
        {
            int rowsAffected = 0;

            rowsAffected = SellerDb.Insert(LName, FName, PhoneNbr, Mail, City, Password);
            return(rowsAffected);
        }
Beispiel #2
0
        public Seller getSeller(string Mail)
        {
            Seller tmpSeller = new Seller();

            tmpSeller = SellerDb.getSeller(Mail);
            return(tmpSeller);
        }
Beispiel #3
0
        public static void TestSellerRead()
        {
            string cmd     = "SELECT * FROM Seller";
            var    sellers = SellerDb.Read(cmd);

            Console.WriteLine("Writing existing sellers..");
            foreach (Seller i in sellers)
            {
                Console.WriteLine("{0} {1}, City: {2}, Phone Number: {3}", i.fName, i.lName, i.city, i.phoneNbr);
            }
        }