public ActionResult DeActivatePremium(int productid) { if (Session["Login"] != null) { gelen = (AppUsers)Session["Login"]; } else { return(RedirectToAction("Index", "Home", new { area = "" })); } if (gelen.Status.Value == 3) { productManagement.DeleteProductPremium(productid); return(RedirectToAction("Premium", "AdminPremium")); } else { return(RedirectToAction("Index", "Home", new { area = "" })); } }