public ActionResult EditProductGet(int id)
 {
     if (string.IsNullOrWhiteSpace(Session["US_Name"] as string))
     {
         return(RedirectToAction("LoginUser", "User"));
     }
     else
     {
         try
         {
             int?vendorCount = UserPresenter.IsVendor(Session["US_Name"] as string);
             if (vendorCount == 1)
             {
                 model = pp.ProDetailsGet(id);
                 return(View(model));
             }
             else
             {
                 return(RedirectToAction("Index", "User"));
             }
         }
         catch (Exception ex)
         {
             ViewBag.mm = ex;
             return(View());
         }
     }
 }