public ActionResult ShowByGroupSlug(string slug, int?p) { int limit = 12; try { limit = int.Parse(ThemesSetting.getValue("ProductPageLimit").ToString()); } catch { } var group = _productSevice.GetProductClassBySlug(slug); if (group == null) { return(RedirectToAction("Index")); } var findter = _productSevice.GetFindterProduct(); findter.AddGroupId(group.Id); var count = findter.GetCount(); var Paging = CalcPaging(limit, p, count); var model = new CategoryProductListViewModel { Group = group, Paging = Paging, ListProduct = findter.GetList(limit, Paging.Page) }; return(View(model)); }