Browse Source

fix email values

feature/19315_Customer-Registration-new
shakun 11 months ago
parent
commit
da4dd1f36e
  1. 6
      CustomerOnlineV2/CustomerOnlineV2.Business/Business/RegisterBusiness/RegisterBusiness.cs
  2. 2
      CustomerOnlineV2/CustomerOnlineV2/Controllers/CustomerController.cs

6
CustomerOnlineV2/CustomerOnlineV2.Business/Business/RegisterBusiness/RegisterBusiness.cs

@ -37,15 +37,15 @@ namespace CustomerOnlineV2.Business.Business.RegisterBusiness
List<Mapping> bodyMappings = new List<Notify.Mapping>();
bodyMappings.Add(new Mapping() { SValue = "CustomerName", SText = register.fullName });
bodyMappings.Add(new Mapping() { SValue = "CustomerId", SText = "" });
bodyMappings.Add(new Mapping() { SValue = "UserId", SText = register.membershipId });
bodyMappings.Add(new Mapping() { SValue = "CustomerId", SText = model1.Id });
bodyMappings.Add(new Mapping() { SValue = "UserId", SText = model1.Extra.Split("|")[1] });
bodyMappings.Add(new Mapping() { SValue = "FirstName", SText = register.firstName });
bodyMappings.Add(new Mapping() { SValue = "MiddleName", SText = register.middleName });
bodyMappings.Add(new Mapping() { SValue = "LastName", SText = register.lastName1 });
bodyMappings.Add(new Mapping() { SValue = "MobileNo", SText = register.mobile });
bodyMappings.Add(new Mapping() { SValue = "Address", SText = register.address });
bodyMappings.Add(new Mapping() { SValue = "EMAIL_ID", SText = register.email });
bodyMappings.Add(new Mapping() { SValue = "RegisteredDate", SText = "" });
bodyMappings.Add(new Mapping() { SValue = "RegisteredDate", SText = DateTime.Now.ToString("dd/MM/yyyy") });
SendNotificationRequest request = new SendNotificationRequest()
{

2
CustomerOnlineV2/CustomerOnlineV2/Controllers/CustomerController.cs

@ -38,7 +38,7 @@ namespace CustomerOnlineV2.Controllers
[HttpPost]
//[Authorization("AddCustomer")]
[ValidateAntiForgeryToken]
public async Task<CommonResponse> AddCustomer(OnlineCustomerRegisterModel register)
public async Task<JsonRxResponse> AddCustomer(OnlineCustomerRegisterModel register)
{

Loading…
Cancel
Save