public IActionResult Invoices(InvoicesFilterModel filterModel) { var model = _modelFactory.FilterInvoicesVM(filterModel); if (TempData["ShowMessage"] != null) { model.ShowMessage = (bool)TempData["ShowMessage"]; } return(View(model)); }