コード例 #1
0
        public IEnumerable <TreatmentRoomBO> UpdateTreatmentRoom(TreatmentRoomBO trmntBO)
        {
            TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory();

            var result = trmntroomBLLFactory.CreateTreatmentRoomBLL().UpdateTreatmentRoomBLL().CreateTreatmentRoomDAL().UpdateTreatmentRoom(trmntBO);

            return(result);
        }
コード例 #2
0
        public string UpdateTreatmentRoom(TreatmentRoomBO trmntBO)
        {
            TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory();

            string result = trmntroomBLLFactory.CreateTreatmentRoomBLL().UpdateTreatmentRoomBLL().CreateTreatmentRoomDAL().UpdateTreatmentRoom(trmntBO);

            return(result);
        }
コード例 #3
0
        // DELETE: api/TreatmentRoom/5
        //Delete action which accpets int as input parameter and string as return type
        public string Delete(string id)
        {
            TreatmentRoomBO treatmentRoomBO = new TreatmentRoomBO();

            treatmentRoomBO.room_ID = id;

            TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory();

            string result = trmntroomBLLFactory.CreateTreatmentRoomBLL().DeleteTreatmentRoomBLL().CreateTreatmentRoomDAL().DeleteTreatmentRoom(treatmentRoomBO);

            return(result);
        }
コード例 #4
0
        // GET: api/TreatmentRoom/5
        //Get action which accepts int input parameter and treatment business object as return type
        public TreatmentRoomBO Get(string id)
        {
            TreatmentRoomBO treatmentRoomBO = new TreatmentRoomBO();

            treatmentRoomBO.room_ID = id;

            TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory();

            TreatmentRoomBO trmntBO = trmntroomBLLFactory.CreateTreatmentRoomBLL().GetTreatmentRoomBLL().CreateTreatmentRoomDAL().GetTreatmentRoom(treatmentRoomBO);

            return(trmntBO);
        }
コード例 #5
0
        public IEnumerable <TreatmentRoomBO> ViewBookedRoom(PatientBO pat)
        {
            TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory();

            return(trmntroomBLLFactory.CreateTreatmentRoomBLL().DeleteTreatmentRoomBLL().CreateTreatmentRoomDAL().GetBookedRooms(pat));
        }
コード例 #6
0
        public IEnumerable <TreatmentRoomBO> GetRoomsRecordsByPatID(PatientBO pat)
        {
            TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory();

            return(trmntroomBLLFactory.CreateTreatmentRoomBLL().DeleteTreatmentRoomBLL().CreateTreatmentRoomDAL().GetRoomsRecordsByPatID(pat));
        }
コード例 #7
0
        public IEnumerable <TreatmentRoomBO> GetAllTreatmentRoomRecs()
        {
            TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory();

            return(trmntroomBLLFactory.CreateTreatmentRoomBLL().DeleteTreatmentRoomBLL().CreateTreatmentRoomDAL().GetAllTreatmentRoomRecs());
        }
コード例 #8
0
        public void InsertTreatmentRoomRec(TreatmentRoomBO treatmentRoomBO)
        {
            TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory();

            TreatmentRoomBO trmntBO = trmntroomBLLFactory.CreateTreatmentRoomBLL().CreateTreatmentRoomBLL().CreateTreatmentRoomDAL().InsertTreatmentRoomRec(treatmentRoomBO);
        }
コード例 #9
0
        public TreatmentRoomBO CheckAvailabilityTreatmentRoom(TreatmentRoomBO roomBO)
        {
            TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory();

            return(trmntroomBLLFactory.CreateTreatmentRoomBLL().DeleteTreatmentRoomBLL().CreateTreatmentRoomDAL().CheckAvailabilityTreatmentRoom(roomBO));
        }
コード例 #10
0
        public IEnumerable <TreatmentRoomBO> GetAvailableRooms(TreatmentRoomBO trmntBO)
        {
            TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory();

            return(trmntroomBLLFactory.CreateTreatmentRoomBLL().DeleteTreatmentRoomBLL().CreateTreatmentRoomDAL().GetAvailableRooms(trmntBO));
        }