Browse Source

Merge branch 'master' of http://202.166.220.79:3000/IME-LONDON/MOBILE_API into feature/Redmine-17825-Email_Template

feature/Redmine-17825-Email_Template
Leeza Baidar 10 months ago
parent
commit
cbf186c293
  1. 13
      Business/Mobile/MobileServices.cs
  2. 4
      Repository/Mobile/MobileServicesRepo.cs

13
Business/Mobile/MobileServices.cs

@ -1974,7 +1974,7 @@ namespace Business.Mobile
}, },
Language = Convert.ToString(CallContext.GetData(Constants.Language)) Language = Convert.ToString(CallContext.GetData(Constants.Language))
}; };
Task.Run(() => NotifierV2.SendNotification(pushNotificationRequest, NOTIFICATION_TYPE.PUSH_NOTIFICATION));
//Task.Run(() => NotifierV2.SendNotification(pushNotificationRequest, NOTIFICATION_TYPE.PUSH_NOTIFICATION));
//SendNotificationRequest emailNotificationRequest = new SendNotificationRequest() //SendNotificationRequest emailNotificationRequest = new SendNotificationRequest()
//{ //{
// IsBulkNotification = false, // IsBulkNotification = false,
@ -2614,11 +2614,14 @@ namespace Business.Mobile
var requiredList = props.Where(x => list.Any(z => x.Key.ToLower() == z.Field.ToLower())) var requiredList = props.Where(x => list.Any(z => x.Key.ToLower() == z.Field.ToLower()))
.Where(y => string.IsNullOrEmpty(y.Value)).ToList(); // case when Field Value empty .Where(y => string.IsNullOrEmpty(y.Value)).ToList(); // case when Field Value empty
var pLength = props.SingleOrDefault(p => p.Key.ToLower().Equals("mobile")).Value.Length;
var rLength = list.SingleOrDefault(p => p.Field.ToLower().Equals("mobile")).MinLength;
if (pLength < rLength)
requiredList.Add(new KeyValuePair() { Key = "mobile" });
//var pLength = props.SingleOrDefault(p => p.Key.ToLower().Equals("mobile")).Value.Length;
//var rLength = list.SingleOrDefault(p => p.Field.ToLower().Equals("mobile")).MinLength;
//if (pLength < rLength)
// requiredList.Add(new KeyValuePair() { Key = "mobile" });
if (requiredList.Count > 0) if (requiredList.Count > 0)
{ {

4
Repository/Mobile/MobileServicesRepo.cs

@ -1020,12 +1020,12 @@ namespace Repository.Mobile
PaymentDetails = new PaymentDetails() PaymentDetails = new PaymentDetails()
{ {
AccountName = "IME LONDON", AccountName = "IME LONDON",
AccountNo = "00000042",
AccountNo = "00000151",
BankName = "Clear bank", BankName = "Clear bank",
Instruction = "Payment Reference Should be your name . Should you require any assitance, IME team is happy to help. You can track from Home ", Instruction = "Payment Reference Should be your name . Should you require any assitance, IME team is happy to help. You can track from Home ",
TotalToPay = GetStatic.ShowDecimal(sRow["cAmt"].ToString()) + " " + sRow["collCurr"].ToString(), TotalToPay = GetStatic.ShowDecimal(sRow["cAmt"].ToString()) + " " + sRow["collCurr"].ToString(),
Reference = sRow["senderName"].ToString(), Reference = sRow["senderName"].ToString(),
SortCode = " 04-08-42"
SortCode = "04-06-93"
} }
}; };

Loading…
Cancel
Save