public void Displayproducts(int sid)
        {
            ItemsBO      io  = new ItemsBO();
            List <Items> tl1 = io.DisplaySellerProducts(sid);



            foreach (Items j in tl1)
            {
                Console.WriteLine("Item Id :" + j.Iid + "  IteamNeam  :" + j.Itemname + "   stocknumber :" + j.Stock_number + "   price :" + j.Price + "   remarks :" + j.Remarks + "\n" +
                                  j.sbo.Cid + " Category name :" + j.sbo.Cname + " category details :" + j.sbo.Details);
            }
        }
Esempio n. 2
0
        public void Displayproducts(int sid)
        {
            ItemsBO      io  = new ItemsBO();
            List <Items> tl1 = io.DisplaySellerProducts(sid);

            ////foreach (Category ij in lsc)
            ////{
            ////    Console.WriteLine("CategoryId :" + ij.cid + "   Category Name :" + ij.cname + "  Category Details :" + ij.details);

            ////}
            ////foreach (SubCategory ik in lsc)
            ////{


            ////    Console.WriteLine("SubCategory Id :" + ik.sbid + "  SubCategory Name :" + ik.sbname + "   SubCategory Desc :" + ik.details); ;

            ////}

            foreach (Items j in tl1)
            {
                Console.WriteLine("Item Id :" + j.iid + "  IteamNeam  :" + j.itemname + "   stocknumber :" + j.stock_number + "   price :" + j.price + "   remarks :" + j.remarks + "\n" +
                                  j.sbo.cid + " Category name :" + j.sbo.cname + " category details :" + j.sbo.details);
            }
        }