Пример #1
0
        public ActionResult CommentList(Int64 RoomID)
        {
            Room room = new Room();
            room.RoomID = RoomID;
            RoomRepository _RoomRepository = new RoomRepository(room);

            return PartialView(_RoomRepository.getdata());
        }
Пример #2
0
        public ActionResult MakeReservations(Int64 RoomID)
        {
            Room model = new Room();
            model.RoomID = RoomID;
            RoomRepository _roomRepository = new RoomRepository(model);

            Reservation _ReservationtModel = new Reservation();
            _ReservationtModel.RoomID = _roomRepository.getdata().RoomID;
            _ReservationtModel.RoomAccount = _roomRepository.getdata();
            Account AccountModel = new Account();
            AccountModel.username = User.Identity.Name;
            AccountRepository _accountRepository = new AccountRepository(AccountModel);
            _ReservationtModel.UserID = _accountRepository.getData().ID;
            return View(_ReservationtModel);
        }
Пример #3
0
        public ActionResult MakeAppointment(Int64 RoomID)
        {
            Room model = new Room();
            model.RoomID = RoomID;
            RoomRepository _roomRepository = new RoomRepository(model);

            Appointment _AppointmentModel = new Appointment();
            _AppointmentModel.RoomID = _roomRepository.getdata().RoomID;
            _AppointmentModel.RoomAcc = _roomRepository.getdata();
            Account AccountModel = new Account();
            AccountModel.username = User.Identity.Name;
            AccountRepository _accountRepository = new AccountRepository(AccountModel);
            _AppointmentModel.UserID = _accountRepository.getData().ID;
            return View(_AppointmentModel);
        }