public AppointmentBO PatientBookAppointment(AppointmentBO bookAppointment)
        {
            AppointmentBLLFactory appBLLFactory = new AppointmentBLLFactory();

            AppointmentBO newAppointment = appBLLFactory.CreateAppointmentBLL().GetAppointment().CreateAppointmentDAL().BookAppointment(bookAppointment);

            return(newAppointment);
        }
Example #2
0
        public IEnumerable <AppointmentBO> GetAppointmentsWithNoBilling()
        {
            AppointmentBLLFactory appBLLFactory = new AppointmentBLLFactory();

            IEnumerable <AppointmentBO> app_BO = appBLLFactory.CreateAppointmentBLL().GetAppointment().CreateAppointmentDAL().GetAppointmentsWithNoBilling();

            return(app_BO);
        }
Example #3
0
        public AppointmentBO GetApmntByID(AppointmentBO appBO)
        {
            AppointmentBLLFactory appBLLFactory = new AppointmentBLLFactory();

            AppointmentBO app_BO = appBLLFactory.CreateAppointmentBLL().GetAppointment().CreateAppointmentDAL().GetAppointment(appBO);

            return(app_BO);
        }
Example #4
0
        public IEnumerable <AppointmentBO> GetAppointmentsForBookedRooms(int id)
        {
            AppointmentBO appBO = new AppointmentBO();

            appBO.paitent_ID = id;

            AppointmentBLLFactory appBLLFactory = new AppointmentBLLFactory();

            IEnumerable <AppointmentBO> app_BO = appBLLFactory.CreateAppointmentBLL().GetAppointment().CreateAppointmentDAL().GetAppointmentsForBookedRooms(appBO);

            return(app_BO);
        }
Example #5
0
        // GET: api/Appointment/5
        //Get Action which accepts integer as parameter and appointment Business object as return type
        public AppointmentBO Get(int id)
        {
            AppointmentBO appBO = new AppointmentBO();

            appBO.appointment_ID = id;

            AppointmentBLLFactory appBLLFactory = new AppointmentBLLFactory();

            AppointmentBO app_BO = appBLLFactory.CreateAppointmentBLL().GetAppointment().CreateAppointmentDAL().GetAppointment(appBO);

            return(app_BO);
        }
        // PUT: api/Appointment/5
        //Put action which accepts integer and appointment business object as parameter with void return type
        public void DeleteAppointment(AppointmentBO appointmentBO)
        {
            //sample input values are provided
            appointmentBO.appointment_ID   = 12004;
            appointmentBO.paitent_ID       = 7002;
            appointmentBO.doctor_ID        = 5006;
            appointmentBO.date             = DateTime.Parse("2010/03/02");
            appointmentBO.timings          = TimeSpan.Parse("20:20:20");
            appointmentBO.appointment_Date = DateTime.Parse("2222/02/02");
            AppointmentBLLFactory appntBLLFactory = new AppointmentBLLFactory();

            string deleteApp = appntBLLFactory.CreateAppointmentBLL().DeleteAppointmentBLL().CreateAppointmentDAL().DeleteAppointment(appointmentBO);
        }
Example #7
0
        // POST: api/Appointment
        // Post action which accepts Appointment Business object as parameter and same as return type
        public AppointmentBO BookAppointment(AppointmentBO appointmentBO)
        {
            AppointmentBLLFactory appntBLLFactory = new AppointmentBLLFactory();

            //appointmentBO.paitent_ID = 7002;
            //appointmentBO.doctor_ID = 5006;
            //appointmentBO.date = DateTime.Parse("2000/10/15");
            //appointmentBO.appointment_Date = DateTime.Parse("2010/2/3");
            //appointmentBO.timings = TimeSpan.Parse("08:00:00");

            AppointmentBO appBO = appntBLLFactory.CreateAppointmentBLL().CreateAppointmentBLL().CreateAppointmentDAL().NewAppointment(appointmentBO);

            return(appBO);
        }
Example #8
0
        public void DeleteAppointment(AppointmentBO appointmentBO)
        {
            AppointmentBLLFactory appntBLLFactory = new AppointmentBLLFactory();

            string deleteApp = appntBLLFactory.CreateAppointmentBLL().DeleteAppointmentBLL().CreateAppointmentDAL().DeleteAppointment(appointmentBO);
        }