Пример #1
0
        //Add and Update Attendee

        public Attendee AddandUpdateAttendee(Attendee attendee)
        {
            Attendee attendees = new Attendee();


            if (attendee.Id == 0)
            {
                attendees = _Attendee.AddData(attendee);
            }
            else
            {
                attendees = _Attendee.UpdateData(attendee);
            }



            return(attendees);
        }