public void SaveData(ModelNotifiedForTerritories modelNotifiedForTerritories, out string error) { TerritoriesGenericREST TerritoriesGenericREST = new TerritoriesGenericREST(wpfConfig); UpdateTerritoriesView updateTerritoriesView = new UpdateTerritoriesView(); Cloner.CopyAllTo(typeof(ModelNotifiedForTerritories), modelNotifiedForTerritories, typeof(UpdateTerritoriesView), updateTerritoriesView); TerritoriesGenericREST.Update(updateTerritoriesView, out error); }