Beispiel #1
0
 // 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: SMenuss
        public ActionResult Index()
        {
            var smenusViewModel = Mapper.Map <IEnumerable <SMenus>, IEnumerable <SMenusViewModel> >(_smenusApp.GetAll());

            return(View(smenusViewModel));
        }