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"); } }
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"); } }