public async Task<EditFeaturesResult> SaveFeatures(List<Graphic> graphicsToAdd, List<Graphic> graphicsToUpdate) { var editFeaturesTask = new EditFeaturesTask(INCIDENT_SERVICE); var editFeaturesParameter = new EditFeaturesParameter(); if (graphicsToAdd.Count > 0) { editFeaturesParameter.AddGraphics.AddRange(graphicsToAdd); } if (graphicsToUpdate.Count > 0) { editFeaturesParameter.UpdateGraphics.AddRange(graphicsToUpdate); } var results = await editFeaturesTask.ExecuteAsync(editFeaturesParameter); return results; }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.