DayPilot add Event from JsonResult
code in C# .Net
public JsonResult GetSchedulers(long? month = null) { List<Scheduler> list = new List<Scheduler>(); var item = new Scheduler(); item.id = "cb122202-5263-f467-73b3-643e4683bbc7"; item.start = "2017-06-21T00:00:00"; item.end = "2017-06-21T12:00:00"; item.text = "Event 2"; list.Add(item); item = new Scheduler(); item.id = "5a8376d2-8e3d-9739-d5d9-c1fba6ec02f9"; item.start = "2017-06-20T14:00:00"; item.end = "2017-06-20T18:00:00"; item.text = "Event 3"; list.Add(item); return this.Json(list, JsonRequestBehavior.AllowGet); }