Esempio n. 1
0
        public static void Delete(Appt appt, object viewState)
        {
            Appt target = List.Find(x => x.MeetingID == appt.MeetingID);

            if (target == null)
            {
                return;
            }

            List.Remove(target);
        }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
 public static void Insert(Appt appt, object viewState)
 {
     List.Add(appt);
 }