public ActionResult Products(int categoryId) { NorthwindDb db = new NorthwindDb(connectionString); IEnumerable <Product> products = db.GetProductsByCategoryId(categoryId); return(View(products)); }
public ActionResult Products(int categoryId) { NorthwindDb db = new NorthwindDb(connectionString); IEnumerable <Product> products = db.GetProductsByCategoryId(categoryId); return(View(products)); }