Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (28 sloc) 824 Bytes
using System.Linq;
using System.Collections.Generic;
using ServiceStack;
using ServiceStack.Script;
namespace SharpScript
[PageArg("title", "Products")]
public class ProductsPage : SharpCodePage
string render(Product[] products) => $@"
<table class='table table-striped'>
{products.OrderBy(x => x.Category).ThenBy(x => x.ProductName).Map(x => $@"
You can’t perform that action at this time.