Deserialization of reference types without parameterless constructor is not supported
问题 I have this API public ActionResult AddDocument([FromBody]AddDocumentRequestModel documentRequestModel) { AddDocumentStatus documentState = _documentService.AddDocument(documentRequestModel, DocumentType.OutgoingPosShipment); if (documentState.IsSuccess) return Ok(); return BadRequest(); } And this is my request model public class AddDocumentRequestModel { public AddDocumentRequestModel(int partnerId, List<ProductRequestModel> products) { PartnerId = partnerId; Products = products; } [Range(1