public ActionResult ProductSelect() { if (Session["Login"] != null && Session["Company"] != null) { gelen = (AppUsers)Session["Login"]; companybilgi = (Company)Session["Company"]; } else { return(RedirectToAction("Index", "Home", new { area = "" })); } if (gelen.Status.Value == 2) { return(View(productManagement.GetAllCompanyActiveProduct(companybilgi.CompanyID))); } else { return(RedirectToAction("Index", "Admin")); } }