Remove Delete

This commit is contained in:
Eric Fleming
2019-03-01 22:11:19 -05:00
parent eea7f54ded
commit 427961095a
2 changed files with 0 additions and 7 deletions

View File

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

View File

@@ -69,12 +69,6 @@ namespace Microsoft.eShopWeb.Infrastructure.Data
await _dbContext.SaveChangesAsync();
}
public void Delete(T entity)
{
_dbContext.Set<T>().Remove(entity);
_dbContext.SaveChanges();
}
public async Task DeleteAsync(T entity)
{
_dbContext.Set<T>().Remove(entity);