private async Task DecrementCount()
{
string errorMessage = string.Empty;
try
{
await _shoppingCartRepository.RemoveProductFromShoppingCartAsync(SelectedItem.ProductId);
SelectedItem.Quantity -= 1;
DecrementCountCommand.RaiseCanExecuteChanged();
}
catch (Exception ex)
{
errorMessage = string.Format(CultureInfo.CurrentCulture, _resourceLoader.GetString("GeneralServiceErrorMessage"), Environment.NewLine, ex.Message);
}
if (!string.IsNullOrWhiteSpace(errorMessage))
{
await _alertMessageService.ShowAsync(errorMessage, _resourceLoader.GetString("ErrorServiceUnreachable"));
}
}