Removing Add
This commit is contained in:
1 parent
b084d4e770
commit
dd0a9a598d
2 files changed
-9
No files matched your search
@@ -55,14 +55,6 @@ namespace Microsoft.eShopWeb.Infrastructure.Data
|
||||
return await ApplySpecification(spec).CountAsync();
|
||||
}
|
||||
|
||||
public T Add(T entity)
|
||||
{
|
||||
_dbContext.Set<T>().Add(entity);
|
||||
_dbContext.SaveChanges();
|
||||
|
||||
return entity;
|
||||
}
|
||||
|
||||
public async Task<T> AddAsync(T entity)
|
||||
{
|
||||
_dbContext.Set<T>().Add(entity);
|
||||
|
||||
Reference in new issue
Block a user