public void InsertCodeSnippet(CodeSnippetModel codeSnippetModel)
        {
            codeSnippetModel.IDCodeSnippet = Guid.NewGuid();

            clubmembershipDataContext.CodeSnippets.InsertOnSubmit(MapModelToDbObject(codeSnippetModel));
            clubmembershipDataContext.SubmitChanges();
        }
        //public List<MembershipModel> GetMembershipsByEventDate(DateTime eventDate)
        //{
        //    List<MembershipModel> membershipModels = new List<MembershipModel>();

        //    foreach (Membership membership in clubmembershipDataContext.Memberships.Where
        //        (x => x.EventDateTime.HasValue && x.EventDateTime.Value.Date == eventDate.Date))
        //    {
        //        membershipModels.Add(MapDbObjectToModel(membership));
        //    }
        //    return membershipModels;
        //}

        public void InsertMembership(MembershipModel membershipModel)
        {
            membershipModel.IDMembership = Guid.NewGuid();

            clubmembershipDataContext.Memberships.InsertOnSubmit(MapModelToDbObject(membershipModel));
            clubmembershipDataContext.SubmitChanges();
        }
        public void InsertAnnouncement(AnnouncementModel announcementModel)
        {
            announcementModel.IDAnnouncement = Guid.NewGuid();

            clubmembershipDataContext.Announcements.InsertOnSubmit(MapModelToDbObject(announcementModel));
            clubmembershipDataContext.SubmitChanges();
        }