Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 487 Bytes
using ServiceStack;
using ServiceStack.Script;
namespace SharpScript
{
[Route("/customers/{Id}")]
public class ViewCustomer
{
public string Id { get; set; }
}
public class CustomerServices : Service
{
public ISharpPages Pages { get; set; }
public object Any(ViewCustomer request) =>
new PageResult(Pages.GetPage("examples/customer")) {
Model = TemplateQueryData.GetCustomer(request.Id)
};
}
}
You can’t perform that action at this time.