我需要使用restangular,$ http或资源从角度控制器向Asp MVC控制器发送3个diferentes对象,我的对象是:
Employee ={Name:"Amy", Age:"17", Email:"Amy@test.com"};
User={UserName:"Amy17", Password:"test123"};
Role ={IdRole="11", Name:"User"}
和我在asp mvc控制器中的方法
Public void GetInfo(Employee _employee, User _user, Role _role)
{....}
我不想使用viewmodel,例如:
Public Class VmGetInfo
{
Public Employee Employee {get; set;}
Public User User {get; set;}
Public Role Role {get; set;}
}
我怎么能这样做?