protected async override void ActivateSelected() { string action = SelectedSeason.Status == EntityStatus.Active ? "deactivate" : "activate"; if (MessageBox.Show("Are you sure you want to " + action + " this season?", "Agrimanagr: Manage season", MessageBoxButton.YesNo) == MessageBoxResult.No) return; using (var c = NestedContainer) { ResponseBool response = new ResponseBool() { Success = false }; if (SelectedSeason == null) return; _proxy = Using<IDistributorServiceProxy>(c); response = await _proxy.SeasonActivateOrDeactivateAsync(SelectedSeason.Id); MessageBox.Show(response.ErrorInfo, "Agrimangr: Manage Season", MessageBoxButton.OK, MessageBoxImage.Information); } }