0
백엔드에 ID 배열을 캡처하는 방법이 있는지 알고 싶습니다.Nancyfx에서 ID 배열을 전달하는 방법
이 게시 방법이 있습니다.
$http({
method: 'POST',
url: "posting",
headers: {'Content-Type': 'application/json'},
data: myIds // ["1","2" ... etc ]
})
백엔드 질문은 어떻게 id를 몇 가지 변수에 바인딩합니까?
Post["posting"] = p =>
{
var data = this.Bind();// here is the problem ????
var OK = someMethod(data);
return OK;
};
다른 모델을 추가해도 작동 할 수 있지만 항상 모델이 필요합니까?