// GET: Product public ActionResult Index(int id = 0) { ApiProvider api = new ApiProvider(); PagingModel model = api.GetService(id, 10); ViewData["id"] = id; return(View(model)); }
// GET: Product/Details/5 public ActionResult Details(int id) { ApiProvider api = new ApiProvider(); return(View(api.GetService(id))); }