private async Task BlockUser(int targetUserIdToBlock) { var(baseResult, _) = await _viewModel.BlockUserAsync(targetUserIdToBlock); switch (baseResult.Result) { case StatusCode.Ok: await DisplayAlert(AppResources.Notification, AppResources.UserSuccessfullyBlocked, AppResources.Ok); break; case StatusCode.Unauthorized: await DisplayAlert(AppResources.Notification, AppResources.LoginBeforeBlocking, AppResources.Ok); break; default: await DisplayAlert(AppResources.Notification, baseResult.Message, AppResources.Ok); break; } }