Remove count

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

No files matched your search

@@ -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);
}
}
-5
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();