Exemplo 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"
            });
        }
Exemplo n.º 2
0
        public Doctor GetDoctorByUserId(int Id)
        {
            Doctor doctor = new DoctorService().GetDoctor();

            return(doctor);
        }