Remove count
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user