Customerさまざまな基準に基づいてエンティティを検索する簡単な例を見てみましょう。
public class Customer : IReturn<CustomerDTO>
{
    public int Id { get; set; }
    public string LastName { get; set; }
}
public class CustomerDTO
{
    public int Id { get; set; }
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public string Address { get; set; }
    public string City { get; set; }
    public string State { get; set; }
    public string ZipCode { get; set; }
}
次に、次のルートを設定します。
public override void Configure(Funq.Container container)
{
    Routes
       .Add<Customer>("/customers", "GET")
       .Add<Customer>("/customers/{Id}", "GET")
       .Add<Customer>("/customers/{LastName}", "GET");
}
これはうまくいかないようです。別々のルートを定義して、異なるフィールドで検索基準を有効にするにはどうすればよいですか?