public List <RFilterCategoryModel> GetListSetMenus(List <string> lstStoreIds, int typeId = 2) { List <RFilterCategoryModel> result = new List <RFilterCategoryModel>(); ProductFactory _productFactory = new ProductFactory(); CategoryApiRequestModel request = new CategoryApiRequestModel(); if (typeId == 1)//company { //get lst store by company var lstCompany = new List <SelectListItem>(); for (int i = 0; i < lstStoreIds.Count; i++) { SelectListItem obj = new SelectListItem() { Value = lstStoreIds[i] }; lstCompany.Add(obj); } var lstStores = _storeFactory.GetListStore(lstCompany); lstStoreIds = lstStores.Select(ss => ss.Value).ToList(); } request.ListStoreIds = lstStoreIds; request.Type = (int)Commons.EProductType.SetMenu; result = _productFactory.GetAllSetMenuForReport(request); return(result); }