Beispiel #1
0
        public ActionResult GetFoodMenuRateList(int foodCategoryId, int outletListId)
        {
            FoodMenuRateModel   foodMenuRateModel = new FoodMenuRateModel();
            List <FoodMenuRate> foodMenuRate      = new List <FoodMenuRate>();

            foodMenuRateModel.FoodCategoryList = _iDropDownService.GetFoodMenuCategoryList();
            foodMenuRateModel.OutletList       = _iDropDownService.GetOutletList();

            foodMenuRateModel.foodMenuRates = _iFoodMenuRateService.GetFoodMenuRateList(Convert.ToInt32(foodCategoryId), Convert.ToInt32(outletListId));

            return(View(foodMenuRateModel));
        }
Beispiel #2
0
        public IActionResult Index(int?outletListId, int?foodCategoryId, int?flag)
        {
            _iCommonService.GetPageWiseRoleRigths("FoodMenuRate");
            FoodMenuRateModel foodMenuRateModel = new FoodMenuRateModel();

            foodMenuRateModel.FoodCategoryList = _iDropDownService.GetFoodMenuCategoryList();
            foodMenuRateModel.OutletList       = _iDropDownService.GetOutletList();
            if (Convert.ToInt32(flag) > 0)
            {
                foodMenuRateModel.foodMenuRates = _iFoodMenuRateService.GetFoodMenuRateList(Convert.ToInt32(foodCategoryId), Convert.ToInt32(outletListId));
            }
            return(View(foodMenuRateModel));
        }