// 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()); }
// GET: Perfil public ActionResult Index() { var perfilViewModel = Mapper.Map <IEnumerable <Perfil>, IEnumerable <PerfilViewModel> >(_perfilAppService.ObtenerTodo()); return(View(perfilViewModel)); }