[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库后......它变为空...