public AssociateManageModel(int?associateTypeId) : this() { if (associateTypeId.HasValue) { AssociateTypeIds = new List <int> { associateTypeId.Value }; AssociateTypes = _associateTypeService.GetAssociateTypes(AssociateTypeIds); } }
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); }