public ActionResult Files()
        {
            var files = new List <CommitteeFile>();

            using (var committeeRepo = new HickoryPTAApp.Models.CommitteeRepository())
            {
                var globalPtaCommittee = committeeRepo.GlobalPtaCommittee();
                files.AddRange(globalPtaCommittee.AttachedFiles.ToList());
            }

            return(FilesPartialView(files.ToList <ServerFile>(), "Important Documents"));
        }
        public ActionResult Newsletters()
        {
            var files = new List <CommitteeFile>();

            using (var committeeRepo = new HickoryPTAApp.Models.CommitteeRepository())
            {
                var globalNewsletterCommittee = committeeRepo.GlobalNewsletterCommittee();
                if (globalNewsletterCommittee != null)
                {
                    files.AddRange(globalNewsletterCommittee.AttachedFiles.ToList());
                }
            }

            return(FilesPartialView(files.ToList <ServerFile>(), "Newsletters"));
        }
        protected override void Seed(HickoryPTAApp.Models.HickoryPTAAppContext context)
        {
            //  This method will be called after migrating to the latest version.

            //  You can use the DbSet<T>.AddOrUpdate() helper extension method
            //  to avoid creating duplicate seed data. E.g.
            //
            //    context.People.AddOrUpdate(
            //      p => p.FullName,
            //      new Person { FullName = "Andrew Peters" },
            //      new Person { FullName = "Brice Lambson" },
            //      new Person { FullName = "Rowan Miller" }
            //    );

            using (var committeeRepo = new HickoryPTAApp.Models.CommitteeRepository())
            {
                var globalPtaCommittee = committeeRepo.GlobalPtaCommittee();
            }

            using (var membershipRepo = new HickoryPTAApp.Models.MemberRepository())
            {
                var defaultAdminMember = membershipRepo.DefaultAdminMember();
            }
        }