public ActionResult Search(string q, string ini) { logger.Debug("Caricamento utenti con iniziale='{0}' e filtro='{1}'", ini, q); System.Threading.Thread.Sleep(1000); if (string.IsNullOrEmpty(q)) q = ""; if (string.IsNullOrEmpty(ini)) ini = ""; var myModel = ur.GetAllUtenti(q, ini); var utenti = new UtenteView(myModel.ToList(), q, ini); return PartialView(utenti); }
public ActionResult List(string q, string ini) { //logger.Debug("Caricamento utenti con iniziale='{0}' e filtro='{1}'", ini, q); //if (string.IsNullOrEmpty(q)) q = ""; //if (string.IsNullOrEmpty(ini)) ini = ""; //var myModel = ur.GetAllUtenti(q, ini); var utenti = new UtenteView(new List<Utente>(), q, ini); return View(utenti); }