Untitled

 avatar
unknown
csharp
a year ago
1.4 kB
6
Indexable
if(commonDBCarts?.Count > 0)
{
	var groupCartTemps = commonDBCarts.GroupBy(x => x.Schedule_GUID);

	foreach (var groupCartTemp in groupCartTemps)
	{ 
		var firtGroupItem = groupCartTemp.FirstOrDefault();

        if (firtGroupItem.Company_ID == (int)WebsiteCompanyEnum._707Inc)
        {
            if (firtGroupItem.FromPlaceID == 4)
            {
                strSubject = "Easybook Reminder: Fill out and submit Malaysia Digital Arrival Card (MDAC)";
                strContent = "Starting from January 1, 2024, all foreigners are required to fill and submit a Malaysia Digital Arrival Card (MDAC) before arriving in Malaysia. Please fill out the MDAC form here. Citizens of Singapore are exempt from the MDAC requirement.";
            }
            else if (firtGroupItem.ToPlaceID == 4)
            {
                strSubject = "Easybook Reminder: Complete and submit SG Arrival Card (SGAC)";
                strContent = "Travelers must complete and submit the SG Arrival Card within three (3) days, including the day of arrival, before reaching Singapore. The submission of SGAC is free and can be accomplished through the SGAC e-Service or MyICA Mobile app.";
            }
            if (!string.IsNullOrEmpty(strSubject))
            {
                Task.Factory.StartNew(() => EmailUtil.SendEmail(strSubject, strContent, firtGroupItem.Mem_Email));
            }
        }
    }

}
Editor is loading...
Leave a Comment