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