My controller has 2 actions:
- Results()
- Index()
I want to share the view named index.aspx
between these 2 actions.
See my previous post for more information
When I build my link to the page, I assume I cannot send it to Index
action as it is expecting a FormCollection
type and hence I create a Results action
public ActionResult Results(ClientSearch data, int? page)
{
FormCollection collection = new FormCollection();
collection.Add("FNAme", data.FName);
collection.Add("Lane", data.Lane);
collection.Add("Zip", data.Zip);
collection.Add("Phone", data.Phone);
return Index(page, collection);
}