public IActionResult Single() { // instantiate repository var context = new ProductContext(); // get data from repository var product = context.GetById(2); return(View(product)); }
public IActionResult Single() { // instantiate repository var context = new ProductContext(); // get data from repository var product = context.GetById(2); return(View(product)); }