Skip to content

Commit d8a4f5a

Browse files
committed
cleanup
1 parent 97ac7a1 commit d8a4f5a

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/OData.WebApi/Data/Repositories/IRepository.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ namespace OData.WebApi.Data.Repositories
99
public interface IRepository<TEntity>
1010
where TEntity : BaseEntity
1111
{
12-
Task<List<TEntity>> GetListAsync();
13-
Task<TEntity> GetByIdAsync(object id);
1412
Task<bool> IsExistAsync(Guid id);
1513
void Add(TEntity obj);
1614
void Update(TEntity obj);

src/OData.WebApi/Data/Repositories/Repository.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ public Repository(ProductDbContext context)
1717
_context = context;
1818
_dbSet = _context.Set<TEntity>();
1919
}
20-
public Task<List<TEntity>> GetListAsync()
21-
{
22-
return _dbSet.ToListAsync();
23-
}
24-
public Task<TEntity> GetByIdAsync(object id)
25-
{
26-
return _dbSet.FindAsync(id);
27-
}
2820

2921
public async Task<bool> IsExistAsync(Guid id)
3022
{

0 commit comments

Comments
 (0)