다음 클래스가 주어지면
public class Result
{
public bool Success { get; set; }
public string Message { get; set; }
}
컨트롤러 작업에서이 중 하나를 반환합니다.
return Json(new Result() { Success = true, Message = "test"})
그러나 내 클라이언트 측 프레임 워크는 이러한 속성이 소문자 성공 및 메시지가 될 것으로 예상합니다. 실제로 소문자 속성 이름을 가질 필요없이 정상적인 Json 함수 호출을 생각할 수있는 방법입니까?