public ActionResult GetAdminApprovedProduct()
 {
     try
     {
         if (string.IsNullOrWhiteSpace(Session["US_Name"] as string))
         {
             return(RedirectToAction("LoginUser", "User"));
         }
         else
         {
             int?vendorCount = UserPresenter.IsVendor(Session["US_Name"] as string);
             int?adminCount  = UserPresenter.IsAdmin(Session["US_Name"] as string);
             if (vendorCount == 1 || adminCount == 1)
             {
                 prolist = pp.GetApproveVendorProductsGet("");
                 try
                 {
                     if (adminCount == 1)
                     {
                         ViewBag.adminCheck = 1;
                     }
                     return(View(prolist));
                 }
                 catch (Exception exx)
                 {
                     ViewBag.errormsg = exx;
                     return(View());
                 }
             }
             else
             {
                 return(RedirectToAction("Index", "User"));
             }
         }
     }
     catch (Exception ex)
     {
         ViewBag.error = ex;
         return(View());
     }
 }