I have a .Net Core Web API. It automatically maps models when the model properties match the request body. For example, if you have this class:
public clas
I think that this should work too:
using Microsoft.AspNetCore.Mvc; public class Package { [BindProperty(Name ="carrier")] public string Carrier { get; set; } [BindProperty(Name ="trackingNumber")] public string TrackingNumber { get; set; } }