예제 #1
0
파일: Attend.cs 프로젝트: stevesloka/bvcms
		public static void MarkRegistered(CMSDataContext Db, int OrgId, int PeopleId, DateTime MeetingDate, int? CommitId, bool AvoidRegrets = false)
		{
			if (CommitId == null)
			{
				var m = Db.Meetings.SingleOrDefault(mm => mm.OrganizationId == OrgId && mm.MeetingDate == MeetingDate);
				if (m == null)
					return;
			}
			var mid = Db.CreateMeeting(OrgId, MeetingDate);
			MarkRegistered(Db, PeopleId, mid, CommitId, AvoidRegrets);
		}
예제 #2
0
        public static void MarkRegistered(CMSDataContext Db, int OrgId, int PeopleId, DateTime MeetingDate, int?CommitId, bool AvoidRegrets = false)
        {
            if (CommitId == null)
            {
                var m = Db.Meetings.SingleOrDefault(mm => mm.OrganizationId == OrgId && mm.MeetingDate == MeetingDate);
                if (m == null)
                {
                    return;
                }
            }
            var mid = Db.CreateMeeting(OrgId, MeetingDate);

            MarkRegistered(Db, PeopleId, mid, CommitId, AvoidRegrets);
        }