Ejemplo n.º 1
0
        public JsonResult UpdateLegend(string LegendID, string LegendName, string LegendPercent)
        {
            string           Msg        = "";
            ModifyLegendData legend_Obj = new ModifyLegendData();

            Msg = legend_Obj.UpdateLegend(LegendID, HttpUtility.UrlDecode(LegendName), LegendPercent);
            return(Json(Msg, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public JsonResult GetAllLegends()
        {
            try
            {
                List <HCM_Legend> legend_list = new List <HCM_Legend>();
                ModifyLegendData  legend_Obj  = new ModifyLegendData();
                legend_list = legend_Obj.GetLegends();

                var jsonResult = Json(legend_list, JsonRequestBehavior.AllowGet);
                jsonResult.MaxJsonLength = int.MaxValue;
                return(jsonResult);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }