public void LlenarComboMarca() { this.comboMarca.DataSource = _marcaAppservice.ObtenerTodo().ToList(); comboMarca.ValueMember = "Id"; comboMarca.DisplayMember = "Descripcion"; }
// GET: Marca public ActionResult Index() { var marcaViewModel = Mapper.Map <IEnumerable <Marca>, IEnumerable <MarcaViewModel> >(_marcaAppService.ObtenerTodo()); return(View(marcaViewModel)); }
// GET: Producto/Create public ActionResult Create() { ViewBag.MarcaId = new SelectList(_marcaAppService.ObtenerTodo(), "Id", "Descripcion"); ViewBag.CategoriaId = new SelectList(_categoriaAppService.ObtenerTodo(), "Id", "Descripcion"); ViewBag.TerceroId = new SelectList(_terceroAppService.ObtenerTodo(), "Id", "Apellido"); return(View()); }