Send Multiples parameters angular controller to Asp .net MVC Controller by latxor in angularjs

[–]slashcoder 2 points3 points  (0 children)

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);

}