Removing the GetById from IRepository

- removed it and updated everywhere, where it was called to use the async version
This commit is contained in:
Eric Fleming
2019-03-01 21:42:52 -05:00
parent 239d217825
commit 058d4e6f5a
5 changed files with 30 additions and 29 deletions

View File

@@ -21,11 +21,6 @@ namespace Microsoft.eShopWeb.Infrastructure.Data
_dbContext = dbContext;
}
public virtual T GetById(int id)
{
return _dbContext.Set<T>().Find(id);
}
public T GetSingleBySpec(ISpecification<T> spec)
{
return List(spec).FirstOrDefault();