如何在邮递员中发送{object和{list of object}}对象

时间:2018-09-04 17:31:59

标签: asp.net-web-api postman

我有Web API服务响应VMPostedProject项目和project_Organizatios列表 这是VMPostedProject的类

public class VMPostedProject
{
    VMProject project = new VMProject();
    List<VMProjectOrganization> project_Organizatios = new List<VMProjectOrganization>();

}

我这样在邮递员中发布数据

{
"project":{
    "Project_Name":"test10",
    "Project_Priority": "Middle"

},
"project_Organizatios":[
    {
        "Organization_ID": 1,
        "Project_Organization_Type_ID":1
    },
    {
    "Organization_ID": 6,
    "Project_Organization_Type_ID":2
    }
]

}

问题是VMPostedProject,该帖子作为服务中的参数发布为

0 个答案:

没有答案