Exemple #1
0
        public static string Save(string myJsonData)
        {
            string organizationId = myJsonData.JsonPick("organizationId");
            string startUsing     = myJsonData.JsonPick("tzStartDate");

            string[] dataDetails = myJsonData.JsonPickArray("dataDetail");

            int result = PeakValleyFlatService.SavePVFData(organizationId, dataDetails);

            if (result == 1)
            {
                return("1");
            }
            else
            {
                return("-1");
            }
        }
Exemple #2
0
        public static string Save(string organizationId, string myJsonData)
        {
            if (mPageOpPermission.Substring(1, 1) == "1")
            {
                string morganizationId = myJsonData.JsonPick("organizationId");
                //string startUsing = myJsonData.JsonPick("tzStartDate");
                string[] dataDetails = myJsonData.JsonPickArray("dataDetail");

                int result = PeakValleyFlatService.SavePVFData(organizationId, dataDetails);

                if (result == 1)
                {
                    return("1");
                }
                else
                {
                    return("-1");
                }
            }
            else
            {
                return("noright");
            }
        }