Removing update
This commit is contained in:
@@ -6,7 +6,6 @@ namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||
public interface IRepository<T> where T : BaseEntity
|
||||
{
|
||||
T GetSingleBySpec(ISpecification<T> spec);
|
||||
void Update(T entity);
|
||||
void Delete(T entity);
|
||||
int Count(ISpecification<T> spec);
|
||||
}
|
||||
|
||||
@@ -63,12 +63,6 @@ namespace Microsoft.eShopWeb.Infrastructure.Data
|
||||
return entity;
|
||||
}
|
||||
|
||||
public void Update(T entity)
|
||||
{
|
||||
_dbContext.Entry(entity).State = EntityState.Modified;
|
||||
_dbContext.SaveChanges();
|
||||
}
|
||||
|
||||
public async Task UpdateAsync(T entity)
|
||||
{
|
||||
_dbContext.Entry(entity).State = EntityState.Modified;
|
||||
|
||||
Reference in New Issue
Block a user