I am allowing JsonValueProviderFactory to populate the parameters of my controller action. One of the parameters is an array of Cat. This works, but sometimes when there is only a single Cat it doesn't get passed in as an array, the argument is just Cat. I am using ExtJs, which is handling everything clientside.
Is there a way to handle this server-side? Or will I need to hack the request from ExtJs to force it to always send an array?
[HttpPost]
public ActionResult Edit(int id, IEnumerable<Cat> Data){...}