Removing update

This commit is contained in:
Eric Fleming
2019-03-01 22:10:32 -05:00
parent dd0a9a598d
commit eea7f54ded
2 changed files with 0 additions and 7 deletions

View File

@@ -6,7 +6,6 @@ namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
public interface IRepository<T> where T : BaseEntity public interface IRepository<T> where T : BaseEntity
{ {
T GetSingleBySpec(ISpecification<T> spec); T GetSingleBySpec(ISpecification<T> spec);
void Update(T entity);
void Delete(T entity); void Delete(T entity);
int Count(ISpecification<T> spec); int Count(ISpecification<T> spec);
} }

View File

@@ -62,12 +62,6 @@ namespace Microsoft.eShopWeb.Infrastructure.Data
return entity; return entity;
} }
public void Update(T entity)
{
_dbContext.Entry(entity).State = EntityState.Modified;
_dbContext.SaveChanges();
}
public async Task UpdateAsync(T entity) public async Task UpdateAsync(T entity)
{ {