public ActionResult Index()
        {
            var model = new ProductListViewModel
            {
                Products = _productService.GetAll(),
            };

            return(View(model));
        }
Beispiel #2
0
 public List <Product> Get()
 {
     return(_productService.GetAll());
 }