Esempio n. 1
0
        public PartialViewResult PageFoodBanks(int offSet = 0, int limit = 5)
        {
            var repository = new FoodBanksRepository();
            var model      = repository.GetFoodBanks(offSet, limit);

            return(PartialView("Partials/FoodBanksTable", model));
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            var repository = new FoodBanksRepository();
            var model      = repository.GetFoodBanks();

            return(View("Index", model));
        }
Esempio n. 3
0
        public PartialViewResult CreateFoodBank(FoodBank foodBank)
        {
            var repository = new FoodBanksRepository();

            repository.CreateFoodBank(foodBank);
            var model = repository.GetFoodBanks();

            return(PartialView("Partials/FoodBanksTable", model));
        }