/// <summary> /// To Display Rooms /// </summary> /// <returns></returns> public static List <RoomDetails> DisplayAllRoomBL() { List <RoomDetails> rlist = new List <RoomDetails>(); try { rlist = HMS_DAL.ShowAllRoomDAL(); if (rlist == null) { throw new HMS_Exception("No room Found"); } } catch (HMS_Exception p) { throw p; } catch (SqlException e) { throw e; } return(rlist); // Returns the list of Room }