//public ActionResult ProductsRequestsDisplay()
        //{
        //    return View();

        //}


        public ActionResult AdminApproveProducts()
        {
            BL.Admin admin = new BL.Admin();

            List <Product_table> product = admin.DisplayPendingProducts();

            return(View(product));
        }
        public ActionResult DisplayVendorRegister()
        {
            Request_table reqobj = new Request_table();

            ViewBag.Request = reqobj;
            BL.Admin             admin     = new BL.Admin();
            List <VendorRequest> ReqVendor = admin.VendorRequestView();

            return(View(ReqVendor));
        }
        public ActionResult AfterAdminLogin(string mail, string password)
        {
            BL.Admin myadmin     = new BL.Admin();
            bool     loginStatus = myadmin.AdminLogin(mail, password);

            if (loginStatus == true)
            {
                return(View("AfterAdminLogin"));
            }
            else
            {
                return(View("AdminLogin"));
            }
        }
示例#4
0
 public void UpdateAdmin(Admin admin)
 {
     IRepository.UpdateAdmin(admin);
 }
示例#5
0
 public void RemoveAdmin(Admin admin)
 {
     IRepository.RemoveAdmin(admin);
 }
示例#6
0
 public void AddAdmin(Admin admin)
 {
     IRepository.AddAdmin(admin);
 }