---
title: "How to Passing IEnumerable parameter to ASP.NET MVC web API action?"  
description: "How to Passing IEnumerable parameter to ASP.NET MVC web API action?"  
author: "Anonymous User"  
published: 2013-09-03  
updated: 2013-09-03  
canonical: https://www.mindstick.com/forum/1417/how-to-passing-ienumerable-parameter-to-asp-dot-net-mvc-web-api-action  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 1 minute  

---

# How to Passing IEnumerable parameter to ASP.NET MVC web API action?

I have two models:

[Transaction](https://www.mindstick.com/blog/175/transactions-in-database):

```
public class Transaction{	public string Part { get; set; }	public string Description { get; set; }	public IEnumerable<LotNum> LotsList { get; set; }}
```

LotNum:

```
public class LotNum{	public string LOTNUM { get; set; }	public string LOTQTY { get; set; }} 
```

[Controller Action](https://www.mindstick.com/forum/34400/how-to-retrieve-form-values-in-controller-action):

```
[HttpPost]public HttpResponseMessage ProcessTransaction(Transaction model){      }
```

When I am passing [parameter](https://www.mindstick.com/blog/450/parameter-class-in-c-sharp) to this action via [Ajax](https://www.mindstick.com/articles/1541/check-availability-of-user-name-or-email-using-asp-dot-net-ajax-and-jquery) call, the LotsList [property](https://www.mindstick.com/blog/205/property-notification-in-c-sharp) [values](https://www.mindstick.com/forum/327/sum-textbox-values) will always be blank:

```
var me = this,    values = me.getValues();values.Part = 'R001';values.Description = 'Sample Desc';values.LotsList = [{            "LOTNUM": "L7",            "LOTQTY": "5"        },        {            "LOTNUM": "L8",     "LOTQTY": "5"}];Ext.Ajax.request({	dataType: 'JSONP',        url: '/Base/ProcessTransaction',        params: values,	method: 'POST',	success: function (response) {	},	failure: function (response) {             	}});
```

Please let me know what I am [missing](https://answers.mindstick.com/qa/52138/international-missing-children-s-day-2019-was-observed-on) and how can I get my [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) resolved?\
Thanks.


---

Original Source: https://www.mindstick.com/forum/1417/how-to-passing-ienumerable-parameter-to-asp-dot-net-mvc-web-api-action

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
