public static void Delete(Appt appt, object viewState) { Appt target = List.Find(x => x.MeetingID == appt.MeetingID); if (target == null) { return; } List.Remove(target); }
public static void Update(Appt appt, object viewState) { Appt target = List.Find(x => x.MeetingID == appt.MeetingID); if (target == null) { return; } target.Title = appt.Title; target.Start = appt.Start; target.End = appt.End; }
public static void Insert(Appt appt, object viewState) { List.Add(appt); }