public ActionResult SaveParams2(Page2Objs getParams) { UserInfo oUser = new UserInfo(); oUser = UserController.GetUserInfo(User.Identity.Name); AdminDB AdminDB = new AdminDB(); //check userid bool insertUserId = false; bool checkUSerId = AdminDB.CheckUserId(oUser.Id); if (!checkUSerId) { //insert userid insertUserId = AdminDB.InertUserId(oUser.Id); } //save bool isSave = AdminDB.SavePage2(oUser.Id, getParams); if (isSave) { return(Json("", JsonRequestBehavior.AllowGet)); } else { return(Json("", JsonRequestBehavior.DenyGet)); } }