내가 좋아하는 그 색인 방법으로 HorseController 있습니다MVC 웹 사이트에서 속성 라우팅을 사용하여 쿼리 매개 변수를 변환하는 방법은 무엇입니까?
[GET("Index", TranslationKey = "HorseIndex")]
[AllowAnonymous]
public ActionResult Index(int? page, HorseTypes? type, HorseGenders? gender, HorseBreeds? breed, HorseJumps? jump,
HorseDressages? dressage, String maxAge, String priceFrom, String priceTo, Country? country, bool? hasPicture, bool? hasVideo)
{
...
}
와 내가 좋아하는이 경로 번역 :
provider.AddTranslations()
.ForKey("HorseIndex", new Dictionary<string, string>
{
{ "da", "heste-til-salg" },
{ "en", "horses-for-sale" }
})
을 문제는 지금, 덴마크어 사용자에 대한 URL은된다 :
http://localhost:12623/heste-til-salg?page=1&hasPicture=False&hasVideo=False
제 질문은 쿼리 매개 변수도 번역하는 방법입니다.
documentation에서 찾을 수 없습니다.