public async Task <int> GetOrdersCountAsync(int customerId) { try { return(await _customersRepository.CountAsync(customerId)); } catch (Exception ex) { _logger?.LogError(ex.ToString()); throw; } }
public async Task <int> GetOrdersCountAsync(int customerId) { try { return(await _customersRepository.CountAsync(customerId)); } catch (Exception ex) { _logger?.LogError(ex.ToString()); throw; } }