mirror of
https://github.com/valentincanonical/eShopOnWeb-chisel-demo.git
synced 2026-05-21 15:52:51 +00:00
Removing Add
This commit is contained in:
@@ -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