I currently have two routes configured:
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");
When using this code
using (scope(Xhtml.Form(Resource).ID("AddPatientForm").Method("post"))) {
For patient it translate the action to
action="/patient"
and for product
action="/product/tagValue"
What am I doing wrong? Can I hint it, I had a quick look in the source and Action is a URI so I can't just set it via Action.
Any help would be appreciated!