You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -48,16 +49,19 @@ public ActionResult<CategoryDto[]> GetAll()
48
49
/// <param name="top">The maximum number of categories to fetch. If this parameter is not provided, all categories are fetched.</param>
49
50
/// <param name="orderBy">A comma-separated list of fields to order the categories by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
50
51
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
@@ -68,6 +72,55 @@ public ActionResult<PagedResultDto<ProductDto>> GetPagedCategories(int? skip, in
68
72
}
69
73
}
70
74
75
+
/// <summary>
76
+
/// Fetches all categories or a page of categories based on the provided parameters.
77
+
/// </summary>
78
+
/// <param name="pageIndex">The page index of records to fetch. If this parameter is not provided, fetching starts from the beginning (page 0).</param>
79
+
/// <param name="size">The maximum number of records to fetch per page. If this parameter is not provided, all records are fetched.</param>
80
+
/// <param name="orderBy">A comma-separated list of fields to order the records by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
81
+
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
Copy file name to clipboardExpand all lines: NorthwindCRUD/Controllers/CustomersController.cs
+57-4Lines changed: 57 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
usingNorthwindCRUD.Models.DbModels;
7
7
usingNorthwindCRUD.Models.Dtos;
8
8
usingNorthwindCRUD.Services;
9
+
usingSwashbuckle.AspNetCore.Annotations;
9
10
10
11
[ApiController]
11
12
[Route("[controller]")]
@@ -48,16 +49,19 @@ public ActionResult<CustomerDto[]> GetAll()
48
49
/// <param name="top">The maximum number of customers to fetch. If this parameter is not provided, all customers are fetched.</param>
49
50
/// <param name="orderBy">A comma-separated list of fields to order the customers by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
50
51
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
@@ -68,6 +72,55 @@ public ActionResult<PagedResultDto<CustomerDto>> GetAllCustomers(int? skip, int?
68
72
}
69
73
}
70
74
75
+
/// <summary>
76
+
/// Fetches all customers or a page of customers based on the provided parameters.
77
+
/// </summary>
78
+
/// <param name="pageIndex">The page index of records to fetch. If this parameter is not provided, fetching starts from the beginning (page 0).</param>
79
+
/// <param name="size">The maximum number of records to fetch per page. If this parameter is not provided, all records are fetched.</param>
80
+
/// <param name="orderBy">A comma-separated list of fields to order the records by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
81
+
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
Copy file name to clipboardExpand all lines: NorthwindCRUD/Controllers/EmployeesController.cs
+58-5Lines changed: 58 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
usingNorthwindCRUD.Models.DbModels;
7
7
usingNorthwindCRUD.Models.Dtos;
8
8
usingNorthwindCRUD.Services;
9
+
usingSwashbuckle.AspNetCore.Annotations;
9
10
10
11
[ApiController]
11
12
[Route("[controller]")]
@@ -50,16 +51,19 @@ public ActionResult<EmployeeDto[]> GetAll()
50
51
/// <param name="top">The maximum number of employees to fetch. If this parameter is not provided, all employees are fetched.</param>
51
52
/// <param name="orderBy">A comma-separated list of fields to order the employees by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
52
53
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
@@ -70,6 +74,55 @@ public ActionResult<PagedResultDto<EmployeeDto>> GetAllEmployees(int? skip, int?
70
74
}
71
75
}
72
76
77
+
/// <summary>
78
+
/// Fetches all employees or a page of employees based on the provided parameters.
79
+
/// </summary>
80
+
/// <param name="pageIndex">The page index of records to fetch. If this parameter is not provided, fetching starts from the beginning (page 0).</param>
81
+
/// <param name="size">The maximum number of records to fetch per page. If this parameter is not provided, all records are fetched.</param>
82
+
/// <param name="orderBy">A comma-separated list of fields to order the records by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
83
+
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
Copy file name to clipboardExpand all lines: NorthwindCRUD/Controllers/OrdersController.cs
+55-4Lines changed: 55 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@
5
5
usingMicrosoft.AspNetCore.Mvc;
6
6
usingNorthwindCRUD.Models.DbModels;
7
7
usingNorthwindCRUD.Models.Dtos;
8
-
usingNorthwindCRUD.Models.InputModels;
9
8
usingNorthwindCRUD.Services;
10
9
11
10
[ApiController]
@@ -56,15 +55,18 @@ public ActionResult<OrderDto[]> GetAll()
56
55
/// <param name="orderBy">A comma-separated list of fields to order the orders by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
57
56
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
@@ -75,6 +77,55 @@ public ActionResult<PagedResultDto<OrderDto>> GetAllOrders(int? skip, int? top,
75
77
}
76
78
}
77
79
80
+
/// <summary>
81
+
/// Fetches all orders or a page of orders based on the provided parameters.
82
+
/// </summary>
83
+
/// <param name="pageIndex">The page index of records to fetch. If this parameter is not provided, fetching starts from the beginning (page 0).</param>
84
+
/// <param name="size">The maximum number of records to fetch per page. If this parameter is not provided, all records are fetched.</param>
85
+
/// <param name="orderBy">A comma-separated list of fields to order the records by, along with the sort direction (e.g., "field1 asc, field2 desc").</param>
86
+
/// <returns>A PagedResultDto object containing the fetched T and the total record count.</returns>
0 commit comments