public static void AddNewGroupAddress( RockContext rockContext, Group group, string locationTypeGuid,
string street1, string street2, string city, string state, string postalCode, string country, bool moveExistingToPrevious = false )
{
if ( !String.IsNullOrWhiteSpace( street1 ) ||
!String.IsNullOrWhiteSpace( street2 ) ||
!String.IsNullOrWhiteSpace( city ) ||
!String.IsNullOrWhiteSpace( postalCode ) ||
!string.IsNullOrWhiteSpace( country ) )
{
var location = new LocationService( rockContext ).Get( street1, street2, city, state, postalCode, country );
AddNewGroupAddress( rockContext, group, locationTypeGuid, location, moveExistingToPrevious );
}
}