diff --git a/JsonRx/Api/MobileController.cs b/JsonRx/Api/MobileController.cs index b4de293..119003f 100644 --- a/JsonRx/Api/MobileController.cs +++ b/JsonRx/Api/MobileController.cs @@ -165,7 +165,8 @@ namespace JsonRx.Api requestOTPModel.DeviceType = Util.GetDeviceType(Request); requestOTPModel.ProcessId = ProcessId; Log.Debug("RequestOTP | REQUEST : " + JsonConvert.SerializeObject(requestOTPModel)); - var staticDataResponse = _requestServices.RequestOTP(requestOTPModel); + JsonRxResponse staticDataResponse = new JsonRxResponse(); + staticDataResponse = _requestServices.RequestOTP(requestOTPModel); return Ok(staticDataResponse); } @@ -219,6 +220,7 @@ namespace JsonRx.Api LogicalThreadContext.Properties[LoggerProperty.CREATEDBY] = model.userId ?? model.pCurrency; LogicalThreadContext.Properties[LoggerProperty.METHODNAME] = "CalculateDefExRate"; LogicalThreadContext.Properties[LoggerProperty.IPADDRESS] = Request.GetClientIpAddress(); + model.DeviceType = Util.GetDeviceType(Request); Log.Debug("CalculateDefExRate | REQUEST : " + JsonConvert.SerializeObject(model)); if (ModelState.IsValid) {