public ActionResult ShowInfo()
        {
            ShowInfoViewModel model = new ShowInfoViewModel();
            var couverts            = db.Couverts.ToList();

            return(View("Info", couverts));
        }
示例#2
0
        public async Task <ActionResult> ShowInfo(int?id, string state)
        {
            if (id == null)
            {
                return(RedirectToAction("ShowInfo"));
            }
            ShowInfoViewModel viewModel = new ShowInfoViewModel
            {
                List   = await rep.GetReservationsByIdAsync((int)id),
                RoomId = (int)id,
            };

            return(View(viewModel));
        }