Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 495 Bytes
using ServiceStack;
using ServiceStack.Templates;
namespace TemplatePages
{
[Route("/customers/{Id}")]
public class ViewCustomer
{
public string Id { get; set; }
}
public class CustomerServices : Service
{
public ITemplatePages Pages { get; set; }
public object Any(ViewCustomer request) =>
new PageResult(Pages.GetPage("examples/customer")) {
Model = TemplateQueryData.GetCustomer(request.Id)
};
}
}