private string PrepareBookingDetails(int BookingId) { #region GetBookingDetails BookingHandler bookingHandler = new BookingHandler(); BookingDTO bookingDTO = bookingHandler.GetBookingDetails(BookingId); StringBuilder emailText = new StringBuilder(); emailText.Append(string.Empty); string BookingText = string.Empty; if (bookingDTO != null) { BookingText = PrepareBookingText(bookingDTO); } emailText.Append(BookingText); #endregion emailText.Append("</br>"); #region GetBookingRoomDetails BookingRoomReportsDTO[] oBRRD = null; BookingRoomReportsHandler oBRM = new BookingRoomReportsHandler(); string BookingDetailsText = string.Empty; oBRRD = oBRM.GetDetailedBookingDetails(BookingId); if (oBRRD != null) { if (oBRRD.Length > 0) { BookingDetailsText = PrepareBookingRoomDetailsText(oBRRD); } } emailText.Append(BookingDetailsText); #endregion return(emailText.ToString()); }
public BookingRoomReportsDTO[] GetDetailedBookingDetails(int BookingId) { try { if (oBookingRoomReportsHandler == null) { oBookingRoomReportsHandler = new BookingRoomReportsHandler(); } return(oBookingRoomReportsHandler.GetDetailedBookingDetails(BookingId)); } catch (Exception exp) { throw exp; } }