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