Exemplo n.º 1
0
        public static SelectList GetCountries(ChurchManager.Models.ApplicationDbContext db)
        {
            var list = db.ReferenceList.Where(x => x.ReferenceType == ReferenceType.Country.ToString()).ToList();

            return(new SelectList(list, "Id", "Description"));
        }
Exemplo n.º 2
0
        public static SelectList GetFamilyRole(ChurchManager.Models.ApplicationDbContext db, string selectedValue)
        {
            var list = db.ReferenceList.Where(x => x.ReferenceType == ReferenceType.FamilyRole.ToString()).ToList();

            return(new SelectList(list, "Id", "Description", selectedValue));
        }