Remove count

This commit is contained in:
Eric Fleming
2019-03-01 22:12:43 -05:00
parent 427961095a
commit 1ba52becaa
2 changed files with 0 additions and 6 deletions

View File

@@ -6,6 +6,5 @@ namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
public interface IRepository<T> where T : BaseEntity
{
T GetSingleBySpec(ISpecification<T> spec);
int Count(ISpecification<T> spec);
}
}

View File

@@ -45,11 +45,6 @@ namespace Microsoft.eShopWeb.Infrastructure.Data
return await ApplySpecification(spec).ToListAsync();
}
public int Count(ISpecification<T> spec)
{
return ApplySpecification(spec).Count();
}
public async Task<int> CountAsync(ISpecification<T> spec)
{
return await ApplySpecification(spec).CountAsync();