예제 #1
0
        /// <summary>
        ///  This action rejects the appointment which is made by the patient.
        /// </summary>
        /// <remarks>
        /// This controller action rejects the appointment of patient and make the status to rejected from pending.
        /// </remarks>
        /// <param name="id"></param>
        /// <returns>Rejects the appointment of a patient</returns>

        public ActionResult RejectAppointmentStatus(int id)
        {
            if (Session["userId"] == null)
            {
                return(Redirect("~"));
            }
            AppointmentEdit Approve = new AppointmentEdit();

            Approve.EditAppointment(id, (int)ClinicManagementSystemDOL.Enums.AppointmentStatus.Rejected);
            return(RedirectToAction("Appointments"));
        }
예제 #2
0
        public void EditAppointmentTest()
        {
            // Arrange
            AppointmentEdit editAppointment = new AppointmentEdit();

            // Act
            var result = editAppointment.EditAppointment(1002, 4);

            // Assert
            Assert.IsTrue(result);
        }