예제 #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);
        }
예제 #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;
        }
예제 #3
0
 public static void Insert(Appt appt, object viewState)
 {
     List.Add(appt);
 }