Can I pass an object from Angular2 to an MVC5 Post?
问题 I am trying to pass my object from Angular2 through a post to an MVC Controller. I was hoping I could pass the actual object in, but all of my properties are appearing as null when it gets into my controller. Is it possible to pass the entire object in? I also tried with "UrlSearchParameters" but it didnt work either. Here's my controller post function: [HttpPost] public JsonResult AddClient(Models.Client client) { var cli = new Models.Client(); cli.name = client.name; cli.npi = client.npi;