//=================================================
        public JsonResult SaveAttributeuses(VA005.Models.Attribute.VA005_SaveAttributeuses value)
        {
            Ctx ctx = Session["ctx"] as Ctx;

            VA005.Models.Attribute obj = new VA005.Models.Attribute(ctx);
            var text = obj.SaveAttributeuses(value);

            return(Json(JsonConvert.SerializeObject(text), JsonRequestBehavior.AllowGet));
        }
        public ActionResult ShowGrideData(VA005.Models.Attribute.VA005_ShowGrideData value)
        {
            Ctx ctx = Session["ctx"] as Ctx;

            VA005.Models.Attribute obj = new VA005.Models.Attribute(ctx);
            var text = obj.ShowGrideData(value);

            return(Json(new { result = text }, JsonRequestBehavior.AllowGet));
        }
        public JsonResult DeleteAttributeValue(VA005.Models.Attribute.VA005_DeleteAttributeValue value)
        {
            Ctx ctx = Session["ctx"] as Ctx;

            VA005.Models.Attribute obj = new VA005.Models.Attribute(ctx);
            var text = obj.DeleteAttributeValue(value);

            return(Json(JsonConvert.SerializeObject(text), JsonRequestBehavior.AllowGet));
            // return Json(new { text }, JsonRequestBehavior.AllowGet);
        }
        public JsonResult SelectionSavemodel(VA005.Models.Attribute.VA005_SaveSelectionList value)
        {
            Ctx ctx = Session["ctx"] as Ctx;

            VA005.Models.Attribute obj = new VA005.Models.Attribute(ctx);

            value.secname   = Server.HtmlDecode(value.secname);
            value.searchkey = Server.HtmlDecode(value.searchkey);

            var text = obj.SelectionSave(value);

            return(Json(JsonConvert.SerializeObject(text), JsonRequestBehavior.AllowGet));
        }
        public JsonResult SaveAttributemodel(VA005.Models.Attribute.VA005_SaveAttribute value)
        {
            Ctx ctx = Session["ctx"] as Ctx;

            VA005.Models.Attribute obj = new VA005.Models.Attribute(ctx);

            value.name        = Server.HtmlDecode(value.name);
            value.description = Server.HtmlDecode(value.description);

            var text = obj.SaveAttribute(value);

            return(Json(JsonConvert.SerializeObject(text), JsonRequestBehavior.AllowGet));
        }