public ActionResult Manufacturer(string param_0, int param_1) { ProductModel productModel = new ProductModel(); ManufacturerModel manufacturerModel = new ManufacturerModel(); Product[] products = productModel.getByManufacturer(param_0.Replace("'", "''"), param_1); if (products.Length > 0) { ViewData["page"] = param_1; ViewData["total"] = productModel.getTotalPageByManufacturer(param_0.Replace("'", "''")); ViewData["manufacturer"] = manufacturerModel.getManufacturerName(param_0.Replace("'", "''")); ViewData["products"] = products; } return(View()); }