Hi All,
I have a data as given below and this Data needs to be inserted in two tables using EF and using Async Task in ASP.Net Core.
1) Employee
2) Employee_Adress
Could anybody guide me with the sample code how to achieve this?
JsonData:
{
"EmployeeId": 1,
"Name": "Bob",
"Designation": "Manager",
"Address": [
{
"AddressId": 1,
"EmployeeId": 1,
"Address": "Dollors Colony, US",
"AddressType": "present"
},
{
"AddressId": 2,
"EmployeeId": 1,
"Address": "Pound Colony, UK",
"AddressType": "permanent"
}
]
}
Thanks & Regards,
Sreenivas K