LocationIdentifier curLoc(int index) { LocationIdentifier cLoc = new LocationIdentifier(); for (int i = 0; i < Locations.Count; i++) { if (Locations[i].LocIdent == index) { cLoc = Locations[i]; } } return(cLoc); }
private void ChangeLocationIdentifier(LocationIdentifierDto dto, Location location, LocationIdentifier locationIdentifier) { RemoveLocationIdentifier(dto, location, locationIdentifier); AddLocationIdentifier(dto, location); }
private static void RemoveLocationIdentifier(LocationIdentifierDto dto, Location location, LocationIdentifier locationIdentifier) { location.RemoveIdentifier(locationIdentifier); }