public List <TraOrderDetailModel> GetOrderDetailListByOrderId(List <int> orderids) { List <TraOrderDetailEntity> detailEntities = _dal.GetTraOrderDetailListExpression(n => orderids.Contains(n.OrderId)); return(ConvertEntityToModel(detailEntities)); }
public List <TraPassengerModel> GetPassengerListByOrderId(int orderid) { List <TraOrderDetailEntity> traOrderDetailEntities = _orderDetailDal.GetTraOrderDetailListExpression(n => n.OrderId == orderid); if (traOrderDetailEntities == null) { return(null); } List <int> odIdList = new List <int>(); traOrderDetailEntities.ForEach(n => odIdList.Add(n.OdId)); List <TraPassengerEntity> traPassengerEntities = _dal.GetTraPassengerListExpression(n => odIdList.Contains(n.OdId)); if (traPassengerEntities == null) { return(null); } return(ConvertEntityToModel(traPassengerEntities)); }