public ActionResult newProduct()
 {
     try
     {
         if (string.IsNullOrWhiteSpace(Session["US_Name"] as string))
         {
             return(RedirectToAction("LoginUser", "User"));
         }
         else
         {
             int?vendorCount = UserPresenter.IsVendor(Session["US_Name"] as string);
             if (vendorCount == 1)
             {
                 model.DropDownPets     = pp.GetPets();
                 model.DropDownCategory = pp.GetProductCategory();
                 return(View(model));
             }
             else
             {
                 Session.Abandon();
                 return(RedirectToAction("LoginUser", "User"));
             }
         }
     }
     catch (Exception ex)
     {
         TempData["ProRegMsg"] = "Product Loading Failed - " + ex.Message;
     }
     return(View());
 }