現在、2 つのルートが構成されています。
ResourceSpace.Has.ResourcesOfType()
.AtUri("/patient")
.And
.AtUri("/patient/cardId/{cardId}")
.HandledBy()
.AsJsonDataContract()
.And
.RenderedByAspx("~/Views/Patient.aspx");
ResourceSpace.Has.ResourcesOfType()
.AtUri("/product")
.And
.AtUri("/product/tagValue/{tagValue}")
.HandledBy()
.AsJsonDataContract()
.And
.RenderedByAspx("~/Views/Product.aspx");
このコードを使用する場合
using (scope(Xhtml.Form(Resource).ID("AddPatientForm").Method("post"))) {
患者の場合、アクションを次のように変換します
アクション="/患者"
そして製品のために
action="/product/tagValue"
私は何を間違っていますか?ソースをざっと見てみると、Action は URI であるため、Action を介して設定することはできません。
どんな助けでも大歓迎です!