|
|
@ -25,11 +25,11 @@ namespace CustomerOnlineRemit.Repository.Repository.Account |
|
|
|
{ |
|
|
|
var sql = "EXEC proc_online_customer_login"; |
|
|
|
sql += " @Flag = " + _dbHelper.FilterString("l"); |
|
|
|
sql += ", @customerEmail = " + _dbHelper.FilterString(loginModel.UserName); |
|
|
|
sql += ", @customerPassword = " + _dbHelper.FilterString(loginModel.Password); |
|
|
|
sql += ", @ipAddress = " + _dbHelper.FilterString(loginModel.IpAddress); |
|
|
|
sql += ", @sessionId = " + _dbHelper.FilterString(loginModel.SessionId); |
|
|
|
sql += ", @LogInfo = N" + _dbHelper.FilterString(JsonConvert.SerializeObject(loginModel.LoginInfo)); |
|
|
|
sql += ",@customerEmail = " + _dbHelper.FilterString(loginModel.UserName); |
|
|
|
sql += ",@customerPassword = " + _dbHelper.FilterString(loginModel.Password); |
|
|
|
sql += ",@ipAddress = " + _dbHelper.FilterString(loginModel.IpAddress); |
|
|
|
sql += ",@sessionId = " + _dbHelper.FilterString(loginModel.SessionId); |
|
|
|
sql += ",@LogInfo = N" + _dbHelper.FilterString(JsonConvert.SerializeObject(loginModel.LoginInfo)); |
|
|
|
|
|
|
|
Log.Debug("ACCOUNTREPOSITORY | DOLOGINASYNC | SQL | " + sql); |
|
|
|
var dr = _dbHelper.ExecuteDataRow(sql); |
|
|
@ -56,7 +56,7 @@ namespace CustomerOnlineRemit.Repository.Repository.Account |
|
|
|
_response.GoogleAuthCode = ""; |
|
|
|
_response.MobileNumber = Convert.ToString(dr["mobile"]); |
|
|
|
_response.RememberMe = loginModel.RememberMe; |
|
|
|
_response.SessionId = Convert.ToString(dr["username"]); |
|
|
|
_response.SessionId = loginModel.SessionId; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -70,14 +70,14 @@ namespace CustomerOnlineRemit.Repository.Repository.Account |
|
|
|
return Task.FromResult(_response); |
|
|
|
} |
|
|
|
|
|
|
|
public Task<CustomerReceiverModel> GetCustomerReceiverList(bool ShowAll) |
|
|
|
public Task<CustomerReceiverModel> GetCustomerReceiverList(bool ShowAll, LoginResponse loginDetails) |
|
|
|
{ |
|
|
|
CustomerReceiverModel _response = new CustomerReceiverModel(); |
|
|
|
try |
|
|
|
{ |
|
|
|
var sql = "EXEC PROC_DYNAMIC_TABLE"; |
|
|
|
sql += " @Flag = " + _dbHelper.FilterString("CustomerReceiver"); |
|
|
|
sql += " @ShowAll = " + _dbHelper.FilterString(ShowAll.ToString()); |
|
|
|
sql += ",@ShowAll = " + _dbHelper.FilterString(ShowAll.ToString()); |
|
|
|
|
|
|
|
Log.Debug("ACCOUNTREPOSITORY | GETCUSTOMERRECEIVERLIST | SQL | " + sql); |
|
|
|
var dt = _dbHelper.ExecuteDataTable(sql); |
|
|
@ -119,14 +119,14 @@ namespace CustomerOnlineRemit.Repository.Repository.Account |
|
|
|
return Task.FromResult(_response); |
|
|
|
} |
|
|
|
|
|
|
|
public Task<CustomerTransactionList> GetCustomerTransactionList(bool ShowAll) |
|
|
|
public Task<CustomerTransactionList> GetCustomerTransactionList(bool ShowAll, LoginResponse loginDetails) |
|
|
|
{ |
|
|
|
CustomerTransactionList _response = new CustomerTransactionList(); |
|
|
|
try |
|
|
|
{ |
|
|
|
var sql = "EXEC PROC_DYNAMIC_TABLE"; |
|
|
|
sql += " @Flag = " + _dbHelper.FilterString("CustomerTxn"); |
|
|
|
sql += " @ShowAll = " + _dbHelper.FilterString(ShowAll.ToString()); |
|
|
|
sql += ",@ShowAll = " + _dbHelper.FilterString(ShowAll.ToString()); |
|
|
|
|
|
|
|
Log.Debug("ACCOUNTREPOSITORY | GETCUSTOMERTRANSACTIONLIST | SQL | " + sql); |
|
|
|
var dt = _dbHelper.ExecuteDataTable(sql); |
|
|
@ -171,7 +171,7 @@ namespace CustomerOnlineRemit.Repository.Repository.Account |
|
|
|
return Task.FromResult(_response); |
|
|
|
} |
|
|
|
|
|
|
|
public Task<CommonResponse> GetDynamicTable(string flag) |
|
|
|
public Task<CommonResponse> GetDynamicTable(string flag, LoginResponse loginDetails) |
|
|
|
{ |
|
|
|
CommonResponse _response = new CommonResponse(); |
|
|
|
try |
|
|
|