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); }
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); }