public IViewComponentResult Invoke(int id)
        {
            EfFoodDal foodDal = new EfFoodDal();
            var       result  = foodDal.GetAll(x => x.CategoryId == id);

            return(View(result));
        }
示例#2
0
        public IViewComponentResult Invoke()
        {
            EfFoodDal foodDal = new EfFoodDal();
            var       result  = foodDal.GetAll();

            return(View(result));
        }