Added spec for see all documents order by desc
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using Ardalis.Specification;
|
||||
using PyroFetes.Models;
|
||||
|
||||
namespace PyroFetes.Specifications.PurchaseOrders;
|
||||
|
||||
public class GetAllPurchaseOrderSpec : Specification<PurchaseOrder>
|
||||
{
|
||||
public GetAllPurchaseOrderSpec()
|
||||
{
|
||||
Query
|
||||
.Where(x => true)
|
||||
.OrderByDescending(x => x.Id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user