Rock.Model.GroupService.AddNewGroupAddress C# (CSharp) Method

AddNewGroupAddress() public static method

Adds the new group address.
public static AddNewGroupAddress ( RockContext rockContext, Group group, string locationTypeGuid, int locationId, bool moveExistingToPrevious = false ) : void
rockContext Rock.Data.RockContext The rock context.
group Group The group.
locationTypeGuid string The location type unique identifier.
locationId int The location identifier.
moveExistingToPrevious bool if set to true [move existing to previous].
return void
        public static void AddNewGroupAddress( RockContext rockContext, Group group, string locationTypeGuid, 
            int? locationId, bool moveExistingToPrevious = false )
        {
            if ( locationId.HasValue )
            {
                var location = new LocationService( rockContext ).Get( locationId.Value );
                AddNewGroupAddress( rockContext, group, locationTypeGuid, location, moveExistingToPrevious );
            }
        }

Same methods

GroupService::AddNewGroupAddress ( RockContext rockContext, Group group, string locationTypeGuid, Location location, bool moveExistingToPrevious = false ) : void
GroupService::AddNewGroupAddress ( RockContext rockContext, Group group, string locationTypeGuid, string street1, string street2, string city, string state, string postalCode, string country, bool moveExistingToPrevious = false ) : void