示例#1
0
        public int CloseAppointment(PatientRecordModel patientRecord)
        {
            int result = 0;

            if (patientRecord != null)
            {
                PractitionerBusiness businessLayer = new PractitionerBusiness();
                businessLayer.StockUpdate(patientRecord);

                if (patientRecord.AppointmentId != null || !patientRecord.AppointmentId.Equals(Guid.Empty))
                {
                    result = businessLayer.CloseAppointment(patientRecord.AppointmentId);
                }
            }

            return(result);
        }