コード例 #1
0
 public ActionResult SendProduct(int productid)
 {
     if (Session["Login"] != null && Session["Company"] != null)
     {
         gelen       = (AppUsers)Session["Login"];
         gelensirket = (Company)Session["Company"];
         if (gelen.Status == 2)
         {
             productManagement.AddPremiumProduct(productid);
             return(RedirectToAction("PremiumProduct", "AdminCompanyPremium"));
         }
         else
         {
             return(RedirectToAction("Index", "Admin"));
         }
     }
     else
     {
         return(RedirectToAction("Index", "Home", new { area = "" }));
     }
 }