public async Task <IActionResult> BanUser(long id) { var request = new BanUserCommand() { UserId = id }; await mediator.Send(request).ConfigureAwait(false); return(Ok()); }
private void ServerMonitorPlayerViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.PropertyName == nameof(SelectedItem) || e.PropertyName == nameof(Data)) { KickUserCommand?.RaiseCanExecuteChanged(); BanUserCommand?.RaiseCanExecuteChanged(); PlayerInfoCommand?.RaiseCanExecuteChanged(); } }