コード例 #1
0
        public ActionResult Add_Update_Group(string ActToDo, string G_Name, string G_Token, int id = 0)
        {
            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();
                // var model = BMF.B_Tags_Filler(CatId);
                return(Content(BMF.Add_Update_Group(ActToDo, G_Name, G_Token, id)));
                //return Content("hello");
            }
            else
            {
                return(RedirectToAction("NotAccess", "MS"));
            }
        }