public IActionResult List() { var products = _productsManager.GetComputers(); // implicit convert to VM list List <Models.ComputerVM> model = products.Select <Entities.Computer, Models.ComputerVM>(x => x).ToList(); return(View(model)); }
public IActionResult List() { var products = _productsManager.GetComputers(); // implicit convert to VM list List <Models.ComputerVM> model = products.Select <Entities.Computer, Models.ComputerVM>(x => x).ToList(); return(View(model)); }