Esempio n. 1
0
 public ActionResult Lista(BancoViewModel model)
 {
     if (ModelState.IsValid)
     {
         Session["Filtro"] = model;
         int totalRegistros;
         var result = bancoAppService.ListarPeloFiltro(model.Filtro, out totalRegistros);
         if (result.Any())
         {
             var listaViewModel = CreateListaViewModel(model.Filtro.PaginationParameters, totalRegistros, result);
             return(PartialView("ListaPartial", listaViewModel));
         }
         return(PartialView("_EmptyListPartial"));
     }
     return(PartialView("_NotificationMessagesPartial"));
 }