|
public JsonResult GetData()
{
// Here filtering the events based on the start and end date value.
IEnumerable data = new DataClasses1DataContext().Appointments.Where(app => (app.StartTime >= param.StartDate && app.StartTime <= param.EndDate) || (app.RecurrenceRule != null && app.RecurrenceRule != "")).ToList();
return Json(data, JsonRequestBehavior.AllowGet);
return Json(data, JsonRequestBehavior.AllowGet);
} |