示例#1
0
        // GET: Nivel
        public ActionResult Index()
        {
            Response.Cache.SetCacheability(HttpCacheability.NoCache);
            DAL_Nivel dNivel = new DAL_Nivel(MvcApplication.strConexao);
            var       vLista = dNivel.ListarNivel(new Nivel());

            return(View(vLista));
        }
示例#2
0
        public PartialViewResult Edit(int idNivel)
        {
            var Nivel = new DAL_Nivel(MvcApplication.strConexao).ListarNivel(new Nivel()
            {
                idNivel = idNivel
            }).FirstOrDefault();

            return(PartialView(Nivel));
        }