I am trying to build a generic export operation in mvc. so i wrote a controller for this.
[AcceptVerbs(HttpVerbs.Post)]
public string Excel(FormCollection collection)
{
string dataUrl = collection["dataUrl"];
string filter = collection["filter"];
//Get data from dataUrl
...
}
My problem is I want to get data to be transferred from another controller by passing same parameter to its method via POST.
this is the sample method for data
[AcceptVerbs(HttpVerbs.Post)]
public JsonResult List(FormCollection collection)
{
...
return Json(data);
}
Thanks in advance.