我目前配置了两条路线:
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"))) {
对于患者,它将动作转换为
行动=“/病人”
对于产品
动作="/product/tagValue"
我究竟做错了什么?我可以提示一下吗,我快速查看了源代码,Action 是一个 URI,所以我不能只通过 Action 设置它。
任何帮助,将不胜感激!