在我的WebAPI调用中,它返回域对象。如果出现任何错误,将在服务器上抛出一个带有定制消息的HttpResponseException。[System.Web.Http.HttpGet] {
Person person = _profileRepository.GetPersonByEmailPerson not found by this id
我试图使用MVC4 api控制器处理json响应,该控制器将对象发送到jstree插件,jstree插件将响应绑定到树中。在这里,响应包含一个文件夹列表和请求的httpresponse。Case 1:如果服务器连接良好,则响应是带有httpresponse 200的文件夹对象(Remember the folder count may be zero, this is where thelike no leaf node exist has to be displayed but can also be the case