// GET: Producto
        public ActionResult Index()
        {
            var producto = _productoRepo.FindAll().ToList();
            var model    = _mapper.Map <List <Producto>, List <ProductoVM> >(producto);

            return(View(model));
        }
Ejemplo n.º 2
0
 public List <Productos> FindAll()
 {
     return(productoRepository.FindAll());
 }