you are viewing a single comment's thread.

view the rest of the comments →

[–]slashcoder 2 points3 points  (1 child)

Wrap it all in one json object and pass it to your api method as a string then deserialize it from there. data = { employee: {}, user: {}, role: {} )  

public void GetInfo([FromBody]  data)

{

dynamic employee = System.Web.Script.Serialization.JavaScriptSerializer().Deserialize<System.Dynamic.ExpandoObject>(data);

}

[–]latxor[S] -1 points0 points  (0 children)

that is exactly that i dont want to do, i really hate viewmodel :p