public ContactsController( IContactRepository contactRepo, ILookupRepository lookupRepo, ACDBContext ctx) { _ctx = ctx; _contactRepo = contactRepo; _lookupRepo = lookupRepo; ViewBag.PossiblePrefixes = _lookupRepo.GetPrefixes(); ViewBag.PossibleSuffixes = _lookupRepo.GetSuffixes(); ViewBag.PossibleGenders = _lookupRepo.GetGenders(); ViewBag.PossibleRaces = _lookupRepo.GetRaces(); ViewBag.PossibleLicenseTypes = _lookupRepo.GetLicenseTypes(); ViewBag.PossibleEyeColors = _lookupRepo.GetEyeColors(); ViewBag.PossibleHairColors = _lookupRepo.GetHairColors(); ViewBag.PossibleHairPatterns = _lookupRepo.GetHairPatterns(); ViewBag.PossibleStates = _lookupRepo.GetStates(); ViewBag.PossibleMaritialStatus = _lookupRepo.GetMaritialStatuses(); ViewBag.PossibleAddressTypes = _lookupRepo.GetAddressTypes(); ViewBag.PossibleApprovalStatus = _lookupRepo.GetApprovalStatuses(); ViewBag.PossibleActiveStatus = _lookupRepo.GetActiveStatuses(); ViewBag.PossibleRemovalStatus = _lookupRepo.GetRemovalStatus(); ViewBag.PossiblePrimaryStatus = _lookupRepo.GetPrimaryStatuses(); ViewBag.PossibleContactType = _lookupRepo.GetContactTypes(); ViewBag.PossibleContactTopic = _lookupRepo.GetContactTopics(); }
public AddressesController(IAddressRepository addressRepository, IAddressChapterRelRepository addresschapterrelRepository, IAddressPersonRelRepository addresspersonrelRepository, IAddressEventRelRepository addresseventrelRepository, IAddressContactRelRepository addresscontactrelRepository, IAddressSubscriptionsRelRepository addresssubscriptionsrelRepository, ILookupRepository lookupRepo, IPersonRepository personRepo, IBeholderPersonRepository beholderPersonRepo) { _lookupRepo = lookupRepo; _addressRepository = addressRepository; _addresspersonrelRepository = addresspersonrelRepository; _addresschapterrelRepository = addresschapterrelRepository; _addresseventrelRepository = addresseventrelRepository; _addresscontactrelRepository = addresscontactrelRepository; _addresssubscriptionsrelRepository = addresssubscriptionsrelRepository; _beholderPersonRepo = beholderPersonRepo; _personRepo = personRepo; ViewBag.PossibleStates = _lookupRepo.GetStates(); ViewBag.PossibleAddressTypes = _lookupRepo.GetAddressTypes(); ViewBag.PossiblePrimaryStatus = _lookupRepo.GetPrimaryStatuses(); }