Esempio n. 1
0
        private Appointment CreateAppointment(int id, string status)
        {
            PatientService patientService = new PatientService();
            DoctorService  doctorService  = new DoctorService();
            int            day            = id;

            return(new Appointment
            {
                AppointmentId = id,
                Patient = patientService.GetPatientByUserId(2),
                Doctor = doctorService.GetDoctor(),
                Status = status,
                Type = "Cita Medica",
                AppointmentDate = new DateTime(2016, 09, day + 1, 13, 15, 00),
                //AppointmentDate = DateTime.Now,
                Hour = DateTime.Now,
                Severity = "Alta",
                Folio = "00001"
            });
        }
Esempio n. 2
0
        public Patient GetPatientByUserId(int Id)
        {
            Patient patient = new PatientService().GetPatientByUserId(Id);

            return(patient);
        }