Esempio n. 1
0
        public ActionResult Index()
        {
            IEnumerable <ProdutoSubcategoria> Subcategorias = Service.GetAll();
            var SubcategoriaVM = Mapper.Map <IEnumerable <ProdutoSubcategoria>, IEnumerable <ProdutoSubcategoriaViewModel> >(Subcategorias);

            return(View(SubcategoriaVM));
        }
Esempio n. 2
0
        public SelectList SelectSubcategorias()
        {
            ProdutoSubcategoriaService Subcategorias = new ProdutoSubcategoriaService();

            return(new SelectList(Subcategorias.GetAll(), "SubcategoriaId", "Nome"));
        }