Example #1
0
        public ActionResult Addpost()
        {
            int userid = int.Parse(Session["User_Id"].ToString());
            var cat    = Vendor.allcatigories();

            ViewBag.cat = cat;
            var Approvedproduct = Vendor.ApprovedProducts(userid);
            var Pendingproduct  = Vendor.pendingProducts(userid);

            ViewBag.Pendingproduct = Pendingproduct;
            var Rejectedproduct = Vendor.rejectedProducts(userid);

            ViewBag.Rejectedproduct = Rejectedproduct;
            var outofstockproducts = Vendor.outofstockProducts(userid);

            ViewBag.outofstock = outofstockproducts;
            return(View(Approvedproduct));
        }