Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
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)
};
}
}