Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I need to send 3 diferentes object from angular controller to Asp MVC controller using restangular, $http or resources, my objects are:

Employee ={Name:"Amy", Age:"17", Email:"[email protected]"};
User={UserName:"Amy17", Password:"test123"};
Role ={IdRole="11", Name:"User"}

and my method in asp mvc controller

Public void GetInfo(Employee _employee, User _user, Role _role)
{....}

I dont want to use a viewmodel, like:

Public Class VmGetInfo
{
Public Employee Employee {get; set;}
Public User User {get; set;}
Public Role Role {get; set;}
}

how i can do that using?

share|improve this question
    
I dont want to use a viewmodel, like...any particular reason why you don't want to use that? Because that would definitely be right. –  ethorn10 18 hours ago
    
@ethorn10 rigth now i have around 100 classes, i dont want to create 200 or more vm classes for the view, is just a mess. –  Carlos G. 18 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.