大家好,我正在尝试从控制器返回一个数组以查看。这是我的控制器:
public ActionResult Index()
{
TahakkukServicesClient client = new TahakkukServicesClient();
client.ClientCredentials.UserName.UserName = "service_test";
client.ClientCredentials.UserName.Password = "..";
client.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None;
MakbuzList[] liste = client.GetMakbuzListe(2);
return View(liste);
}
}
}
那么如何在视图中显示数组的值呢?