private ActionResult ProductByCat(string argument, TrSearchViewModel vmodel, string language) { //search if cat have child cat var children = SearchBL.FindCatsChildList(argument, language); if (children.Count() == 0) { vmodel.Products = SearchBL.FindProductListByIdCat(argument, language); } else { vmodel.CatsChild = children; } return(PartialView("_PartialTransactionSearch", vmodel)); }
private ActionResult ProductByCat(string argument, TrSearchViewModel vmodel) { vmodel.Products = SearchBL.FindProductListByIdCat(argument); return(PartialView("_PartialTransactionSearch", vmodel)); }