C# 对象列表不能';t进入控制台时准确传递给mvc控制器

C# 对象列表不能';t进入控制台时准确传递给mvc控制器,c#,angularjs,asp.net-mvc,C#,Angularjs,Asp.net Mvc,我试图通过使用ngFileUpload将对象数组列表传递给mvc控制器,因为需要发送一些图像 客户端 app.controller('ProprietorController', function ($http, $scope, Upload) { var existRegDetailVals = []; $scope.CreateProprietor = function () { if (Trade.length !== 0) { for (var i = 0; i <= Tr

我试图通过使用
ngFileUpload
将对象数组列表传递给mvc控制器,因为需要发送一些图像

客户端

app.controller('ProprietorController', function ($http, $scope, Upload) {
var existRegDetailVals = [];
$scope.CreateProprietor = function () {
if (Trade.length !== 0) {
    for (var i = 0; i <= Trade.length - 1; i++) {
         existRegDetailVals[i] = {};
         existRegDetailVals[i].RegistrationType = Trade[i].SourceName;
         existRegDetailVals[i].DateOfRegistration = Trade[i].DateRegistration;
         existRegDetailVals[i].RenewalDate = Trade[i].RenewalDate;
     }
     console.log(existRegDetailVals);
}
Upload.upload({
               url: '/Admin/UserManagement/CreateProprietor',
               data: {
                      files: AllProprietorFiles,objExistRegList: existRegDetailVals
                     }
                  }).then(function (response) {
 
                  });
}
})
[HttpPost]
public ContentResult CreateProprietor(List<ExistingRegistrationDetail> objExistRegList)
{

}
public partial class ExistingRegistrationDetail
    {
        public int exRegID { get; set; }
        public string RegistrationType { get; set; }
        public Nullable<System.DateTime> DateOfRegistration { get; set; }
        public Nullable<System.DateTime> RenewalDate { get; set; }
    }
app.controller('ownerController',函数($http,$scope,Upload){
var ExisteregDetailVals=[];
$scope.createOwner=函数(){
如果(Trade.length!==0){
对于(var i=0;i…如果您不能这样做-您必须确保客户端和服务器使用完全相同的区域性来格式化/解析值…这是背后的痛…如果您不能这样做-您必须确保客户端和服务器使用完全相同的区域性来格式化/解析值…这是背后的痛。