/// <summary> /// Function to display rooms for hotels /// </summary> /// <param name="Hotel"></param> /// <returns></returns> public static List <RoomDetails> FilteredRoomBL(string Hotel) { List <RoomDetails> Blist = new List <RoomDetails>(); try { Blist = HMS_DAL.FilterRoomsDAL(Hotel); if (Blist == null) { throw new HMS_Exception("No Room Found"); } } catch (HMS_Exception p) { throw p; } catch (SqlException e) { throw e; } return(Blist); // Returns the list of Hotel }