Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (21 sloc) 527 Bytes
#if false //stay within free-quota limit
using ServiceStack;
using ServiceStack.Templates;
namespace TemplatePages
{
[Route("/products/view")]
public class ViewProducts
{
public string Id { get; set; }
}
public class ProductsServices : Service
{
public object Any(ViewProducts request) =>
new PageResult(Request.GetCodePage("products")) {
Args = {
["products"] = TemplateQueryData.Products
}
};
}
}
#endif