Post参数获取空值mvc4 web api

时间:2014-05-21 06:06:10

标签: asp.net-mvc-4

 [ActionName("Doctor")]
        public void Post(Doctor doctor)
        {
            exManager.Process(() => DoctorContext.CreateNewDoctor(doctor), "ANE");
        }

医生对象从邮递员发送

  http://localhost:50667/api/Doctor/Doctor
    Content-Type application/json
    {"DoctorId":0,"DoctorName":"girish","Specialist":"demotology","Patients":[],"Presriptions":[],"Clinics":[],"Contact"{"ContactId":0,"Address":"tumkur","State":"karnataka","Country":"India","PinNumber":1234,"PhoneNumber":97432,"Email":"girish.ggt@gmail.com"}}

之前工作正确..应用enterterprice库后......它变为空...

0 个答案:

没有答案