public ActionResult Blog_catTable() { string SSSession = ""; if (HttpContext.Request.Cookies["TSHPANDAControll" + StaticLicense.LicName] != null) { HttpCookie cookie = HttpContext.Request.Cookies.Get("TSHPANDAControll" + StaticLicense.LicName); if (cookie != null) { SSSession = cookie.Value; } else { SSSession = "N.A"; } } else { SSSession = "N.A"; } CheckAccess check = new CheckAccess(SSSession); if (check.HasAccess) { Blog_ModelFiller BMF = new Blog_ModelFiller(); return(View(BMF.Blog_CategoryTable())); } else { return(RedirectToAction("NotAccess", "MS")); } }