forked from ServiceStack/ServiceStack.Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrders.cs
More file actions
30 lines (25 loc) · 753 Bytes
/
Orders.cs
File metadata and controls
30 lines (25 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.Collections.Generic;
using Northwind.ServiceModel.Types;
using ServiceStack.ServiceHost;
using ServiceStack.ServiceInterface.ServiceModel;
namespace Northwind.ServiceModel.Operations
{
[Route("/orders")]
[Route("/orders/page/{Page}")]
[Route("/customers/{CustomerId}/orders")]
public class Orders
{
public int? Page { get; set; }
public string CustomerId { get; set; }
}
public class OrdersResponse
{
public OrdersResponse()
{
this.ResponseStatus = new ResponseStatus();
this.Results = new List<CustomerOrder>();
}
public List<CustomerOrder> Results { get; set; }
public ResponseStatus ResponseStatus { get; set; }
}
}