public AppointmentBO PatientBookAppointment(AppointmentBO bookAppointment) { AppointmentBLLFactory appBLLFactory = new AppointmentBLLFactory(); AppointmentBO newAppointment = appBLLFactory.CreateAppointmentBLL().GetAppointment().CreateAppointmentDAL().BookAppointment(bookAppointment); return(newAppointment); }
public IEnumerable <AppointmentBO> GetAppointmentsWithNoBilling() { AppointmentBLLFactory appBLLFactory = new AppointmentBLLFactory(); IEnumerable <AppointmentBO> app_BO = appBLLFactory.CreateAppointmentBLL().GetAppointment().CreateAppointmentDAL().GetAppointmentsWithNoBilling(); return(app_BO); }
public AppointmentBO GetApmntByID(AppointmentBO appBO) { AppointmentBLLFactory appBLLFactory = new AppointmentBLLFactory(); AppointmentBO app_BO = appBLLFactory.CreateAppointmentBLL().GetAppointment().CreateAppointmentDAL().GetAppointment(appBO); return(app_BO); }
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); }
// 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); }
// 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); }
public void DeleteAppointment(AppointmentBO appointmentBO) { AppointmentBLLFactory appntBLLFactory = new AppointmentBLLFactory(); string deleteApp = appntBLLFactory.CreateAppointmentBLL().DeleteAppointmentBLL().CreateAppointmentDAL().DeleteAppointment(appointmentBO); }