ShapeFileFeatureSource featureSource = new ShapeFileFeatureSource("C:\\PolygonDrawn.shp", ShapeFileReadWriteMode.ReadWrite);
featureSource.Open();
featureSource.BeginTransaction();
featureSource.AddFeature(feature);
featureSource.CommitTransaction();
featureSource.Close();
}
And for your requirement I think we can just create two feature collection, then loop all features in original feature source, and add them to the two collections, after loop save them to feature layer.