@ -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);
}
@ -62,12 +62,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)