Example #1
0
        public IActionResult Index()
        {
            if (!Authentication.AuthenticateByCookie(HttpContext))
            {
                return(Redirect("/Receptionists/Authentication/Login?are=Receptionists&ctrl=Guests&act=Index"));
            }

            List <Guest> list = GuestDAO.GetAllGuests();

            return(View(list));
        }