I've been reading through the online documentation and I can't seem to find any snippets or examples that do these very basic functions.
All I need to do is
1) Create a new geodatabase
2) Reference a feature service
3) copy that feature service into the geodatabase
I've found snippets that allow me to add layer to a map
//create a layer using a URL
string url = @"http://sampleserver6.arcgisonline.com/arcgis/rest/services/NapervilleShelters/FeatureServer/0";
Layer lyr = LayerFactory.Instance.CreateLayer(new Uri(url), map);
However, I cannot find the method to then save that layer to a geodatabase.
Any help would be much appreciated!