public static String themThoiGianKhoiHanh(string id, string date) { Debug.WriteLine("id ajax : " + id + " date " + date); if (id != null && date != null) { ///DateTime x = DateTime.Parse(date.ToString()); TourController tourController1 = new TourController(); if (tourController1.kiemTraNgayKhoiHanh(id, date)) { if (tourController1.themThoiGianKhoiHanh(Convert.ToInt32(id), date)) { DataTable table = tourController1.dsThoiGianKhoiHanh(Convert.ToInt32(id)); // Debug.WriteLine(JsonConvert.SerializeObject(table)); return(JsonConvert.SerializeObject(table)); } else { return(null); } } else { return(null); } } else { return(null); } }