public AssociateManageModel()
        {
            _associateTypeService = HostContainer.GetInstance <IAssociateTypeService>();
            _companyTypeService   = HostContainer.GetInstance <ICompanyTypeService>();
            _locationService      = HostContainer.GetInstance <ILocationService>();
            var countryService = HostContainer.GetInstance <ICountryService>();

            AssociateTypeIds = new List <int>();
            AssociateTypes   = _associateTypeService.GetAssociateTypes();

            LocationIds = new List <int>();
            Locations   = _locationService.GetLocations();

            CompanyTypeIds = new List <int>();
            CompanyTypes   = _companyTypeService.GetCompanyTypes();

            Countries = countryService.GetCountries();
            States    = EnumUtilities.GenerateSelectListItems <CommonEnums.AustraliaState>(GenerateEnumType.DescriptionValueAndDescriptionText);
            Genders   = EnumUtilities.GenerateSelectListItems <UserEnums.Gender>(GenerateEnumType.DescriptionValueAndDescriptionText);
        }
Beispiel #2
0
 public AssociateTypesController(IAssociateTypeService associateTypeService)
 {
     _associateTypeService = associateTypeService;
 }