public List <OrderDetail> GetAllOrdersList(string ID) { // return _orderRepository.GetAllOrdersList(ID); List <OrderDetail> OrderList = null; try { OrderList = _orderRepository.GetAllOrdersList(ID); if (OrderList != null) { for (int i = 0; i < OrderList.Count; i++) { if (OrderList[i].ProductSpecXML1 != null && OrderList[i].ProductSpecXML1 != "") { OrderList[i].AttributeValues = _commonBusiness.GetAttributeValueFromXML(OrderList[i].ProductSpecXML1); } } } } catch (Exception ex) { throw ex; } return(OrderList); }
public Bookings GetBookings(int BookingID) { Bookings bookingObj = null; try { bookingObj = _bookingsRepository.GetBookings(BookingID); if (bookingObj.ProductSpecXML != null) { bookingObj.AttributeValues = _commonBusiness.GetAttributeValueFromXML(bookingObj.ProductSpecXML); } } catch (Exception ex) { throw ex; } return(bookingObj); }
public Quotations GetQuotations(int QuotationsID) { Quotations QuotationsObj = null; try { QuotationsObj = _QuotationsRepository.GetQuotations(QuotationsID); if (QuotationsObj.ProductSpecXML != null) { QuotationsObj.AttributeValues = _commonBusiness.GetAttributeValueFromXML(QuotationsObj.ProductSpecXML); } } catch (Exception ex) { throw ex; } return(QuotationsObj); }