/// <summary> /// To Display Hotels /// </summary> /// <returns></returns> public static List <Hotel> DisplayAllHotelBL() { List <Hotel> Hlist = new List <Hotel>(); try { Hlist = HMS_DAL.ShowAllHotelDAL(); if (Hlist == null) { throw new HMS_Exception("No Hotel Found"); } } catch (HMS_Exception p) { throw p; } catch (SqlException e) { throw e; } return(Hlist); // Returns the list of Hotel }