We're trying to pass objects from an MVC application to a webapi application. Basically our set up is :-
Models project MVC 4 web project - references the models project WEB API project - references the models project
from the mvc application, we want to pass a populated model to the web api,
User Model
public User
{
Firstname { get; set}
Surname { get; set}
}
Web API
public bool Add(mUser use)
{
}
MVC
http headers? URL string? should we be using http client? also, are there any samples? I've only found 1 but unable to get this to work.
any help or advise would be greatly appreciated.