Ejemplo 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"
            });
        }
Ejemplo n.º 2
0
        public Patient GetPatientByUserId(int Id)
        {
            Patient patient = new PatientService().GetPatientByUserId(Id);

            return(patient);
        }