i have a Model in web api
public class myModel{
public string FirstName{get;set;}
public string LastName{get;set;}
public int Age {get;set;}
}
Web api Controller
public string saveRecord(myModel data){
return data;
}
angular post ....
function(){
var obj={
FirstName:'Robin',
Age:24
}
$http.post(myurl,{ obj}).then(function(rp){
alert(rp.data);
}
}
i have passed only two parameter in post.
now i am getting all values is null in response