My Controller has search criteria
// GET:
public ActionResult Index(int? page, string site, string user, string department, string status, string TransactionDate)
{
/// Filter by search criteria
return view(object.ToList());
}
This is my delete action
// POST:
[HttpPost]
public ActionResult Delete(string id = null)
{
var table = Table.Find(id);
if (table == null)
{
return HttpNotFound();
}
return View(table);
}
How to keep search value and return the view filter by search value.
Thanks, Si Thu