|
|
@ -439,6 +439,10 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
.Where(x => x.Account == sAccount && x.BookingID == BookingID) |
|
|
|
.Single(); |
|
|
|
|
|
|
|
var sSubscriber = db.Queryable<SETB_SAL_Subscriber>() //get Subscriber info
|
|
|
|
.Where(x => x.BookingID == booking.BookingID) |
|
|
|
.Single(); |
|
|
|
|
|
|
|
var service = db.Queryable<SETB_PDT_ONSiteBaseInfo>() //get Service info
|
|
|
|
.Where(x => x.ServiceID == booking.ServiceID && x.LangID == Lang) |
|
|
|
.Single(); |
|
|
@ -512,9 +516,9 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
toEmail = new List<EmailTo>(); //收件人
|
|
|
|
oEmailTo = new EmailTo //收件人資訊
|
|
|
|
{ |
|
|
|
ToUserID = sUser.MemberID, |
|
|
|
ToUserName = sUser.LastName, |
|
|
|
ToEmail = sUser.Email, |
|
|
|
ToUserID = sSubscriber.MemberID, |
|
|
|
ToUserName = sSubscriber.LastName, |
|
|
|
ToEmail = sSubscriber.Email, |
|
|
|
Type = "to" |
|
|
|
}; |
|
|
|
toEmail.Add(oEmailTo); |
|
|
|