コード例 #1
0
        // GET: Usuario/Create
        public ActionResult Create()
        {
            ViewBag.PerfilId   = new SelectList(_perfilAppService.ObtenerTodo(), "Id", "Descripcion");
            ViewBag.EmpleadoId = new SelectList(_empleadoAppService.ObtenerTodo(), "Id", "Nombre");
            ViewBag.EmpresaId  = new SelectList(_empresaAppService.ObtenerTodo(), "Id", "Descripcion");

            return(View());
        }
コード例 #2
0
        // GET: Perfil
        public ActionResult Index()
        {
            var perfilViewModel = Mapper.Map <IEnumerable <Perfil>,
                                              IEnumerable <PerfilViewModel> >(_perfilAppService.ObtenerTodo());

            return(View(perfilViewModel));
        }