As you click Details, the user is redirected to another View, uma alternativa é você passar os valores informados no(s) filtro(s) da consulta quando o usuário clicar na opção de ver os detalhes do cadastro.
Example of a Details link to pass filter values to View that displays the query result:
@Html.ActionLink("Detalhe", "Detalhes", "SeuController", new
{
id = model.Id,
filtro1 = model.filtro1,
filtro2 = model.filtro2
})
Receiving these values entered in the query filter (s) when the user clicks Details, you can reload the previous screen (containing the results of the query) when the user clicks "back" their detail view.
Example on Controller of how to receive values from the filters:
[HttpPost]
public ActionResult Detalhes(int id, string filtro1, int filtro2)
{
var model = new DetalhesViewModel(id, filtro1, filtro2);
// Carrega o model/sua partial com os dados dos filtros informados
...
}
Now in your Details view you have the values of the filters and you can pass them as a parameter on your "Back" link to reassemble your View result query:
Example View : Passing the values of the filters on the Back link to reassemble the query screen
@Html.ActionLink("Voltar", "Consulta", "SeuController", new
{
filtro1 = model.filtro1,
filtro2 = model.filtro2
})
Example Controller of the query receiving values from the filters:
[HttpGet]
public ActionResult Consulta(string filtro1, int filtro2)
{
// Carrega o model aproveitando os filtros
var model = new ConsultaViewModel(filtro1, filtro2);
return View(model);
}