diff --git a/Business/Mobile/MobileServices.cs b/Business/Mobile/MobileServices.cs index f1a0339..b9b4dd0 100644 --- a/Business/Mobile/MobileServices.cs +++ b/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() { diff --git a/Common/Model/UserDetails.cs b/Common/Model/UserDetails.cs index 6fbbe92..c40e0c8 100644 --- a/Common/Model/UserDetails.cs +++ b/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; } } } diff --git a/Repository/Mobile/MobileServicesRepo.cs b/Repository/Mobile/MobileServicesRepo.cs index 265292e..4b4dbe1 100644 --- a/Repository/Mobile/MobileServicesRepo.cs +++ b/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; }