public IEnumerable <TreatmentRoomBO> UpdateTreatmentRoom(TreatmentRoomBO trmntBO) { TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory(); var result = trmntroomBLLFactory.CreateTreatmentRoomBLL().UpdateTreatmentRoomBLL().CreateTreatmentRoomDAL().UpdateTreatmentRoom(trmntBO); return(result); }
public string UpdateTreatmentRoom(TreatmentRoomBO trmntBO) { TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory(); string result = trmntroomBLLFactory.CreateTreatmentRoomBLL().UpdateTreatmentRoomBLL().CreateTreatmentRoomDAL().UpdateTreatmentRoom(trmntBO); return(result); }
// 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); }
// 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); }
public IEnumerable <TreatmentRoomBO> ViewBookedRoom(PatientBO pat) { TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory(); return(trmntroomBLLFactory.CreateTreatmentRoomBLL().DeleteTreatmentRoomBLL().CreateTreatmentRoomDAL().GetBookedRooms(pat)); }
public IEnumerable <TreatmentRoomBO> GetRoomsRecordsByPatID(PatientBO pat) { TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory(); return(trmntroomBLLFactory.CreateTreatmentRoomBLL().DeleteTreatmentRoomBLL().CreateTreatmentRoomDAL().GetRoomsRecordsByPatID(pat)); }
public IEnumerable <TreatmentRoomBO> GetAllTreatmentRoomRecs() { TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory(); return(trmntroomBLLFactory.CreateTreatmentRoomBLL().DeleteTreatmentRoomBLL().CreateTreatmentRoomDAL().GetAllTreatmentRoomRecs()); }
public void InsertTreatmentRoomRec(TreatmentRoomBO treatmentRoomBO) { TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory(); TreatmentRoomBO trmntBO = trmntroomBLLFactory.CreateTreatmentRoomBLL().CreateTreatmentRoomBLL().CreateTreatmentRoomDAL().InsertTreatmentRoomRec(treatmentRoomBO); }
public TreatmentRoomBO CheckAvailabilityTreatmentRoom(TreatmentRoomBO roomBO) { TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory(); return(trmntroomBLLFactory.CreateTreatmentRoomBLL().DeleteTreatmentRoomBLL().CreateTreatmentRoomDAL().CheckAvailabilityTreatmentRoom(roomBO)); }
public IEnumerable <TreatmentRoomBO> GetAvailableRooms(TreatmentRoomBO trmntBO) { TreatmentRoomBLLFactory trmntroomBLLFactory = new TreatmentRoomBLLFactory(); return(trmntroomBLLFactory.CreateTreatmentRoomBLL().DeleteTreatmentRoomBLL().CreateTreatmentRoomDAL().GetAvailableRooms(trmntBO)); }