private void CopyActionPointCallback(string actionPointName, string data) { CopyActionPointResponse response = JsonConvert.DeserializeObject <CopyActionPointResponse>(data); if (response.Result) { Notifications.Instance.ShowToastMessage($"Action point {actionPointName} was duplicated"); } else { Notifications.Instance.ShowNotification("Failed to duplicate action point", response.Messages.FirstOrDefault()); } }
private void CopyActionPointDryRunCallback(string _, string data) { CopyActionPointResponse response = JsonConvert.DeserializeObject <CopyActionPointResponse>(data); if (response.Result) { CopyButton.SetInteractivity(true); } else { CopyButton.SetInteractivity(false, response.Messages.FirstOrDefault()); } }