diff --git a/src/ApplicationCore/Interfaces/IRepository.cs b/src/ApplicationCore/Interfaces/IRepository.cs index 8d5c38e..c9414d1 100644 --- a/src/ApplicationCore/Interfaces/IRepository.cs +++ b/src/ApplicationCore/Interfaces/IRepository.cs @@ -6,6 +6,5 @@ namespace Microsoft.eShopWeb.ApplicationCore.Interfaces public interface IRepository where T : BaseEntity { T GetSingleBySpec(ISpecification spec); - int Count(ISpecification spec); } } diff --git a/src/Infrastructure/Data/EfRepository.cs b/src/Infrastructure/Data/EfRepository.cs index b5afbee..45f1ac5 100644 --- a/src/Infrastructure/Data/EfRepository.cs +++ b/src/Infrastructure/Data/EfRepository.cs @@ -45,11 +45,6 @@ namespace Microsoft.eShopWeb.Infrastructure.Data return await ApplySpecification(spec).ToListAsync(); } - public int Count(ISpecification spec) - { - return ApplySpecification(spec).Count(); - } - public async Task CountAsync(ISpecification spec) { return await ApplySpecification(spec).CountAsync();