Thanks again Uma. You have been a great help!
I tweaked yours to work with a selection of features. Here is my final solution for anyone else who may be following this thread:
// Get the layers and also any selected OIDs for the AsBuilt and the SitePlan layers
var asBuiltLayer = MapView.Active.Map.FindLayers("GISWRKS1.WORKS.Drawings_AsBuilts").FirstOrDefault() as BasicFeatureLayer;
// variable for the coordinate of the mouse click in the whatever the SpatialReference of the map is
var coord = GeometryEngine.Instance.Project(geometry, MapView.Active.Map.SpatialReference) as MapPoint;
var moveToPoint = new MapPointBuilder(coord.X, coord.Y, MapView.Active.Map.SpatialReference);
// create counter for showing final results
int abCount = 0;
// start the EditOperation
var modifyAsBuilts = new EditOperation();
modifyAsBuilts.Name = "Move As-Builts and Site Plans";
// Get any selected OIDs for the layer, and move each point to the mouse click point.
if (asBuiltLayer != null)
{
var selectedAB = asBuiltLayer.GetSelection();
IReadOnlyList<long> selectedAsbuiltOIDs = selectedAB.GetObjectIDs();
foreach (var oid in selectedAsbuiltOIDs)
{
modifyAsBuilts.Modify(asBuiltLayer, oid, moveToPoint.ToGeometry());
abCount++;
}
}
modifyAsBuilts.Execute();