add FirstAsync in respository (#370)
* add FirstAsync in respository * use new FirstOrDefaultAsync() method from repository
This commit is contained in:
1 parent
7dcf3845d6
commit
fdb4869c0b
4 files changed
+15
-4
No files matched your search
@@ -13,5 +13,7 @@ namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||
Task UpdateAsync(T entity);
|
||||
Task DeleteAsync(T entity);
|
||||
Task<int> CountAsync(ISpecification<T> spec);
|
||||
Task<T> FirstAsync(ISpecification<T> spec);
|
||||
Task<T> FirstOrDefaultAsync(ISpecification<T> spec);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user