public ActionResult Index() { IEnumerable <ProdutoSubcategoria> Subcategorias = Service.GetAll(); var SubcategoriaVM = Mapper.Map <IEnumerable <ProdutoSubcategoria>, IEnumerable <ProdutoSubcategoriaViewModel> >(Subcategorias); return(View(SubcategoriaVM)); }
public SelectList SelectSubcategorias() { ProdutoSubcategoriaService Subcategorias = new ProdutoSubcategoriaService(); return(new SelectList(Subcategorias.GetAll(), "SubcategoriaId", "Nome")); }