Remove Delete

This commit is contained in:
Eric Fleming committed 2019-03-01 22:11:19 -05:00
1 parent eea7f54ded
commit 427961095a
2 files changed
-7

No files matched your search

-6
View File
@@ -68,12 +68,6 @@ namespace Microsoft.eShopWeb.Infrastructure.Data
_dbContext.Entry(entity).State = EntityState.Modified;
await _dbContext.SaveChangesAsync();
}
public void Delete(T entity)
{
_dbContext.Set<T>().Remove(entity);
_dbContext.SaveChanges();
}
public async Task DeleteAsync(T entity)
{