Exemplo n.º 1
0
        public IActionResult Create()
        {
            Dinner dinner = new DinnerRepo(db).GetNextThursday();

            return(View(dinner));
        }
Exemplo n.º 2
0
        public IActionResult ViewGuestList(int dinnerID)
        {
            DinnerGuestsVM guestList = new DinnerRepo(db).GetGuestList(dinnerID);

            return(View(guestList));
        }
Exemplo n.º 3
0
        public IActionResult Index()
        {
            List <Dinner> dinners = new DinnerRepo(db).GetAllDinners();

            return(View(dinners));
        }