Esempio n. 1
0
 public string GetLabelsWithTreeGridFormat(int productLineId)
 {
     try
     {
         DataTable labelTable = ProductLineService.GetLabelsByProductLineId(productLineId);
         return(TreeGridJsonParser.DataTableToJson(labelTable, "ViewName", new string[] { "VariableName", "FieldName" }));
     }
     catch
     {
         return("[]");
     }
 }
        public void GetProductLinesWithComboboxFormat()
        {
            DataTable productLineTable = ProductLineService.GetProductLines();

            Context.Response.Write(ComboboxJsonParser.DataTableToJson(productLineTable, "ID", "Name"));
        }