public ActionResult Products(ProductsTableModel model) { var db = new TigerTreeDatabase(); List <Product> products = db.SearchProducts(model.Barcode, model.Category, model.Description); model.Products = products.Select(p => p.ToProductModel()).ToList(); return(View(model)); }
public ActionResult Products() { var model = new ProductsTableModel(); return(View(model)); }