public ActionResult Index() { var model = new ProductListViewModel { Products = _productService.GetAll(), }; return(View(model)); }
public List <Product> Get() { return(_productService.GetAll()); }