Browse Source

#24417 referral amount setup email

feature/Redmine-17825-Email_Template
Leeza Baidar 8 months ago
parent
commit
a62f33dcd8
  1. 5
      Business/Mobile/MobileServices.cs
  2. 5
      Common/Model/UserDetails.cs
  3. 5
      Repository/Mobile/MobileServicesRepo.cs

5
Business/Mobile/MobileServices.cs

@ -350,7 +350,10 @@ namespace Business.Mobile
bodyMappings.Add(new Notify.Mapping() { SValue = "MobileNo", SText = userDetails.Mobile });
bodyMappings.Add(new Notify.Mapping() { SValue = "Address", SText = userDetails.Address });
bodyMappings.Add(new Notify.Mapping() { SValue = "EMAIL_ID", SText = userDetails.Email });
bodyMappings.Add(new Notify.Mapping() { SValue = "RegisteredDate", SText = userDetails.RegisteredDate.ToString("dd/MM/YYYY") });
bodyMappings.Add(new Notify.Mapping() { SValue = "RegisteredDate", SText = Convert.ToString(userDetails.RegisteredDate) });
bodyMappings.Add(new Notify.Mapping() { SValue = "rewardPoint", SText = userDetails.TotalPoints });
bodyMappings.Add(new Notify.Mapping() { SValue = "RegReward", SText = userDetails.RegPoints });
bodyMappings.Add(new Notify.Mapping() { SValue = "TranReward", SText = userDetails.TranPoints });
SendNotificationRequest request = new SendNotificationRequest()
{

5
Common/Model/UserDetails.cs

@ -17,6 +17,9 @@ namespace Common.Model
public string Mobile { get; set; }
public string Address { get; set; }
public string Email { get; set; }
public DateTime RegisteredDate { get; set; }
public string RegisteredDate { get; set; }
public string TotalPoints { get; set; }
public string RegPoints { get; set; }
public string TranPoints { get; set; }
}
}

5
Repository/Mobile/MobileServicesRepo.cs

@ -1412,7 +1412,10 @@ namespace Repository.Mobile
userDetails.LastName = row["Lastname1"].ToString();
userDetails.Email = row["email"].ToString();
userDetails.Address = row["address"].ToString();
userDetails.RegisteredDate = DateTime.Parse(row["createdDate"].ToString());
userDetails.RegisteredDate = row["createdDate"].ToString();
userDetails.TotalPoints = row["TotalPoints"].ToString();
userDetails.RegPoints = row["RegPoints"].ToString();
userDetails.TranPoints = row["TranPoints"].ToString();
}
return userDetails;
}

Loading…
Cancel
Save