private async Task <PersonAddressCreateGet> CreateAddDropDownBoxes(PersonAddressCreateGet PersonAddress, string UserId, int PersonId) { var AddressTypes = await _addressTypeProvider.List(UserId); var Countries = await _masterListProvider.CountryList(UserId); PersonAddress.AddressTypes = AddressTypes; PersonAddress.Countries = Countries; PersonAddress.PersonId = PersonId; return(PersonAddress); }
private async Task <OrganizationAddressCreateGet> CreateAddDropDownBoxes(OrganizationAddressCreateGet OrganizationAddress, string UserId, int OrganizationId) { var AddressTypes = await _addressTypeProvider.List(UserId); var Countries = await _masterListProvider.CountryList(UserId); OrganizationAddress.AddressTypes = AddressTypes; OrganizationAddress.Countries = Countries; OrganizationAddress.OrganizationId = OrganizationId; return(OrganizationAddress); }