// GET: SItensMenus/Create public ActionResult Create() { ViewBag.ItemPai_Id = new SelectList(_sItensMenuApp.GetAll(), "Id", "Nome"); ViewBag.Menu_Id = new SelectList(_sMenuApp.GetAll(), "Id", "Nome"); ViewBag.Pagina_Id = new SelectList(_sPaginaApp.GetAll(), "Id", "Nome"); return(View()); }
// GET: SPapeisAcoess public ActionResult Index() { ViewBag.Pagina_Id = new SelectList(_spaginasApp.GetAll(), "Id", "Nome"); ViewBag.Papel_Id = new SelectList(_spapeisApp.GetAll(), "Id", "Nome"); return(View()); }
// GET: SPaginas public ActionResult Index() { var spaginaViewModel = Mapper.Map <IEnumerable <SPagina>, IEnumerable <SPaginaViewModel> >(_spaginaApp.GetAll()); return(View(spaginaViewModel)); }