Example #1
0
        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));
        }
Example #2
0
 private ActionResult ProductByCat(string argument, TrSearchViewModel vmodel)
 {
     vmodel.Products = SearchBL.FindProductListByIdCat(argument);
     return(PartialView("_PartialTransactionSearch", vmodel));
 }