Esempio n. 1
0
        public ActionResult ShowAppointmentDetail(int FunctionaryId, int IdAppointment)
        {
            AppointmentModels appointmentModels = new AppointmentModels();

            appointmentModels.Functionary.Cedula = FunctionaryId;
            appointmentModels.Id = IdAppointment;
            Debug.WriteLine("ID FUNCTIONARY" + FunctionaryId);
            Debug.WriteLine("IDAPPOINTMENT" + IdAppointment);
            AppointmentBusiness appointment = new AppointmentBusiness();

            ViewBag.appointment = appointment.getAppointmentDetail(appointmentModels);
            foreach (AppointmentModels assistance in ViewBag.appointment)
            {
                Debug.WriteLine(assistance.Id);
                Debug.WriteLine(assistance.Functionary.Cedula);
                Debug.WriteLine(assistance.Functionary.Name);
                Debug.WriteLine(assistance.Functionary.FirstLastName);
                Debug.WriteLine(assistance.Functionary.SecondLastName);
                Debug.WriteLine(assistance.Functionary.Gender);
                Debug.WriteLine(assistance.Functionary.NamePlace);
                Debug.WriteLine(assistance.Functionary.NameArea);
                Debug.WriteLine(assistance.Functionary.NameOffice);
                Debug.WriteLine(assistance.Functionary.PersonalPhone);
                Debug.WriteLine(assistance.Functionary.Mail);
                Debug.WriteLine(assistance.Date);
                Debug.WriteLine(assistance.Hour);
                Debug.WriteLine(assistance.Professional.Name);
            }

            return(View("AppointmentDetail"));
        }
Esempio n. 2
0
        public ActionResult ShowAppointmentDetailPost()
        {
            string            FunctionaryId     = Request.Params["cedula"];
            string            IdAppointment     = Request.Params["id"];
            AppointmentModels appointmentModels = new AppointmentModels();

            appointmentModels.Functionary.Cedula = Int32.Parse(FunctionaryId);
            appointmentModels.Id = Int32.Parse(IdAppointment);
            AppointmentBusiness appointment = new AppointmentBusiness();

            ViewBag.appointment = appointment.getAppointmentDetail(appointmentModels);
            foreach (AppointmentModels assistance in ViewBag.appointment)
            {
                Debug.WriteLine(assistance.Id);
                Debug.WriteLine(assistance.Functionary.Cedula);
                Debug.WriteLine(assistance.Functionary.Name);
                Debug.WriteLine(assistance.Functionary.FirstLastName);
                Debug.WriteLine(assistance.Functionary.SecondLastName);
                Debug.WriteLine(assistance.Functionary.Gender);
                Debug.WriteLine(assistance.Functionary.NamePlace);
                Debug.WriteLine(assistance.Functionary.NameArea);
                Debug.WriteLine(assistance.Functionary.NameOffice);
                Debug.WriteLine(assistance.Functionary.PersonalPhone);
                Debug.WriteLine(assistance.Functionary.Mail);
                Debug.WriteLine(assistance.Date);
                Debug.WriteLine(assistance.Hour);
                Debug.WriteLine(assistance.Professional.Name);
            }

            return(View("AppointmentDetail"));
        }