// GET: Monitor public ViewResult Index(int?pagina, string patrimonio) { int itensPorPagina = 12; int paginat = pagina ?? 1; List <MonitorModel> lista = new List <MonitorModel>(); lista = new MonitorDao().Listar(new MonitorModel { Patrimonio = patrimonio }); return(View(lista.ToPagedList(paginat, itensPorPagina))); }
// GET: Monitor/Delete/ public ActionResult Delete(int id) { var model = new MonitorDao().Obter(id); return(View(model)); }