S
S
semexion2019-07-06 15:12:04
.NET
semexion, 2019-07-06 15:12:04

How to implement a model/class to work with EF?

I send a post request from the client to the server in json format with the following content:

{
“adres” : “Street”,
“goods” : [
{
“name” : “apple”,
“count” : 1
},
{
“name” : “melon”,
“count” : 1
}]
}

How to build a model structure on the server?
As the accepted parameter of the controller method I use
[FromBody]<Order> Order

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question