public ActionResult RoomAppointmentReq(Int64 AppointmentID)
        {
            Appointment _AppointmentModel = new Appointment();
            _AppointmentModel.AppointmentID = AppointmentID;
            AppointmentRepository _AppointmentRepository = new AppointmentRepository(_AppointmentModel);

            return View(_AppointmentRepository.getAppointment());
        }
 public ActionResult myReqList()
 {
     Account _accountModel = new Account();
     _accountModel.username = User.Identity.Name;
     AccountRepository _accountRepository = new AccountRepository(_accountModel);
     Appointment _appointmentModel = new Appointment();
     _appointmentModel.UserID = _accountRepository.getData().ID;
     AppointmentRepository _appointmentRepository = new AppointmentRepository(_appointmentModel);
     return View(_appointmentRepository.getAppointmentListByID());
 }
        public ActionResult AppointmentList(Int64 RoomID)
        {
            Room model = new Room();
            model.RoomID = RoomID;
            Appointment _AppointmentModel = new Appointment();
            Account AccountModel = new Account();
            AccountModel.username = User.Identity.Name;

            AccountRepository _accountRepository = new AccountRepository(AccountModel);
            _AppointmentModel.UserID = _accountRepository.getData().ID;
            _AppointmentModel.RoomID = RoomID;
            AppointmentRepository _appointmentRepository = new AppointmentRepository(_AppointmentModel);
            return View(_appointmentRepository.getAppointmentList());
        }
 public ActionResult UpdateAppointment(Appointment model)
 {
     AppointmentRepository _appointmentRepository = new AppointmentRepository(model);
     _appointmentRepository.updateAppointment();
     return RedirectToAction("AppointmentRequest");
 }
 public ActionResult ReallyMakeAppointment(Appointment model)
 {
     model.AppointmentDate = DateTime.Parse(model.Date + " " + model.Time);
     model.Status = "Not Visited";
     model.Respond = "Not Confirmed";
     AppointmentRepository _appointmentRepository = new AppointmentRepository(model);
     _appointmentRepository.insertAppointment();
     return RedirectToAction("AppointmentResult", "Room", model);
 }