Compare commits
merge into: IME-LONDON:master
IME-LONDON:Calculation
IME-LONDON:feature/19315_Customer-Registration
IME-LONDON:feature/19315_Customer-Registration-new
IME-LONDON:master
IME-LONDON:feature/Redmine-18711-Receiver_Module_for_Web
IME-LONDON:prod
pull from: IME-LONDON:feature/Redmine-18711-Receiver_Module_for_Web
IME-LONDON:Calculation
IME-LONDON:feature/19315_Customer-Registration
IME-LONDON:feature/19315_Customer-Registration-new
IME-LONDON:master
IME-LONDON:feature/Redmine-18711-Receiver_Module_for_Web
IME-LONDON:prod
9 Commits
Author | SHA1 | Message | Date |
---|---|---|---|
Dinesh | 60e7ebcdeb |
receiver
|
12 months ago |
Dinesh | 60b22be6cc |
reset password
|
12 months ago |
Dinesh | e2e65619dd |
Reset Password
|
12 months ago |
Dinesh | 35e16f3426 |
added receiver information
|
12 months ago |
Dinesh | f15be4e9ba |
add receiver information
|
12 months ago |
Dinesh | 3721d85962 |
receiver information
|
12 months ago |
Dinesh | 61ae0ccc0c |
Added Receiver information
|
1 year ago |
Dinesh | 3ccaed9c26 |
Receiver information
|
1 year ago |
Dinesh | 98aa9ebdfe |
add receiver
|
1 year ago |
724 changed files with 15985 additions and 3342 deletions
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/DesignTimeBuild/.dtbcache.v2
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/16101930-ba3c-470f-bcda-f134abc01386.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/49b19289-7ef2-4493-b565-e933e276e2db.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/71c4d690-9b13-49ab-b0a8-222db8fcd7a2.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/bd84ac67-11e0-4ef9-8da8-d98f74972f6b.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/c7b96ce0-e865-4f72-8294-2531c5949775.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/d95d583c-0ac5-4384-80ff-37380abb0f10.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/e6e974d0-ac6c-4025-a41d-2813d20fc919.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/e86c022e-fb99-46ad-83ea-429bd4057049.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/f45833f4-297c-4a69-872a-aae3c0d63619.vsidx
-
0CustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/read.lock
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/v16/.suo
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/v17/.futdcache.v2
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/v17/.suo
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/v17/HierarchyCache.v1.txt
-
BINCustomerOnlineV2/.vs/ProjectEvaluation/customeronlinev2.metadata.v7.bin
-
BINCustomerOnlineV2/.vs/ProjectEvaluation/customeronlinev2.projects.v7.bin
-
BINCustomerOnlineV2/CustomerOnlineV2.Api/bin/Debug/net7.0/CustomerOnlineV2.Api.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Api/bin/Debug/net7.0/CustomerOnlineV2.Api.pdb
-
BINCustomerOnlineV2/CustomerOnlineV2.Api/bin/Debug/net7.0/CustomerOnlineV2.Common.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Api/bin/Debug/net7.0/CustomerOnlineV2.Common.pdb
-
40CustomerOnlineV2/CustomerOnlineV2.Api/obj/CustomerOnlineV2.Api.csproj.nuget.dgspec.json
-
7CustomerOnlineV2/CustomerOnlineV2.Api/obj/CustomerOnlineV2.Api.csproj.nuget.g.props
-
2CustomerOnlineV2/CustomerOnlineV2.Api/obj/Debug/net7.0/CustomerOnlineV2.Api.GeneratedMSBuildEditorConfig.editorconfig
-
BINCustomerOnlineV2/CustomerOnlineV2.Api/obj/Debug/net7.0/CustomerOnlineV2.Api.assets.cache
-
BINCustomerOnlineV2/CustomerOnlineV2.Api/obj/Debug/net7.0/CustomerOnlineV2.Api.csproj.AssemblyReference.cache
-
2CustomerOnlineV2/CustomerOnlineV2.Api/obj/Debug/net7.0/CustomerOnlineV2.Api.csproj.CoreCompileInputs.cache
-
15CustomerOnlineV2/CustomerOnlineV2.Api/obj/Debug/net7.0/CustomerOnlineV2.Api.csproj.FileListAbsolute.txt
-
BINCustomerOnlineV2/CustomerOnlineV2.Api/obj/Debug/net7.0/CustomerOnlineV2.Api.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Api/obj/Debug/net7.0/CustomerOnlineV2.Api.pdb
-
24CustomerOnlineV2/CustomerOnlineV2.Api/obj/project.assets.json
-
26CustomerOnlineV2/CustomerOnlineV2.Api/obj/project.nuget.cache
-
9CustomerOnlineV2/CustomerOnlineV2.Business/Business/AccountBusiness/AccountBusiness.cs
-
1CustomerOnlineV2/CustomerOnlineV2.Business/Business/AccountBusiness/IAccountBusiness.cs
-
14CustomerOnlineV2/CustomerOnlineV2.Business/Business/ReceiverBusiness/IReceiverBusiness.cs
-
39CustomerOnlineV2/CustomerOnlineV2.Business/Business/ReceiverBusiness/ReceiverBusiness.cs
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/bin/Debug/net7.0/CustomerOnlineV2.Api.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/bin/Debug/net7.0/CustomerOnlineV2.Api.pdb
-
43CustomerOnlineV2/CustomerOnlineV2.Business/bin/Debug/net7.0/CustomerOnlineV2.Business.deps.json
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/bin/Debug/net7.0/CustomerOnlineV2.Business.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/bin/Debug/net7.0/CustomerOnlineV2.Business.pdb
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/bin/Debug/net7.0/CustomerOnlineV2.Common.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/bin/Debug/net7.0/CustomerOnlineV2.Common.pdb
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/bin/Debug/net7.0/CustomerOnlineV2.Repository.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/bin/Debug/net7.0/CustomerOnlineV2.Repository.pdb
-
94CustomerOnlineV2/CustomerOnlineV2.Business/obj/CustomerOnlineV2.Business.csproj.nuget.dgspec.json
-
7CustomerOnlineV2/CustomerOnlineV2.Business/obj/CustomerOnlineV2.Business.csproj.nuget.g.props
-
2CustomerOnlineV2/CustomerOnlineV2.Business/obj/Debug/net7.0/CustomerOnlineV2.Business.GeneratedMSBuildEditorConfig.editorconfig
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/obj/Debug/net7.0/CustomerOnlineV2.Business.assets.cache
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/obj/Debug/net7.0/CustomerOnlineV2.Business.csproj.AssemblyReference.cache
-
2CustomerOnlineV2/CustomerOnlineV2.Business/obj/Debug/net7.0/CustomerOnlineV2.Business.csproj.CoreCompileInputs.cache
-
19CustomerOnlineV2/CustomerOnlineV2.Business/obj/Debug/net7.0/CustomerOnlineV2.Business.csproj.FileListAbsolute.txt
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/obj/Debug/net7.0/CustomerOnlineV2.Business.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/obj/Debug/net7.0/CustomerOnlineV2.Business.pdb
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/obj/Debug/net7.0/ref/CustomerOnlineV2.Business.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/obj/Debug/net7.0/refint/CustomerOnlineV2.Business.dll
-
168CustomerOnlineV2/CustomerOnlineV2.Business/obj/project.assets.json
-
121CustomerOnlineV2/CustomerOnlineV2.Business/obj/project.nuget.cache
-
14CustomerOnlineV2/CustomerOnlineV2.Common/Models/AccountModel/AccountModel.cs
-
43CustomerOnlineV2/CustomerOnlineV2.Common/Models/ReceiverModel/ReceiverInformationModel.cs
-
BINCustomerOnlineV2/CustomerOnlineV2.Common/bin/Debug/net7.0/CustomerOnlineV2.Common.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Common/bin/Debug/net7.0/CustomerOnlineV2.Common.pdb
-
19CustomerOnlineV2/CustomerOnlineV2.Common/obj/CustomerOnlineV2.Common.csproj.nuget.dgspec.json
-
7CustomerOnlineV2/CustomerOnlineV2.Common/obj/CustomerOnlineV2.Common.csproj.nuget.g.props
-
2CustomerOnlineV2/CustomerOnlineV2.Common/obj/Debug/net7.0/CustomerOnlineV2.Common.GeneratedMSBuildEditorConfig.editorconfig
-
BINCustomerOnlineV2/CustomerOnlineV2.Common/obj/Debug/net7.0/CustomerOnlineV2.Common.assets.cache
-
BINCustomerOnlineV2/CustomerOnlineV2.Common/obj/Debug/net7.0/CustomerOnlineV2.Common.csproj.AssemblyReference.cache
-
2CustomerOnlineV2/CustomerOnlineV2.Common/obj/Debug/net7.0/CustomerOnlineV2.Common.csproj.CoreCompileInputs.cache
-
12CustomerOnlineV2/CustomerOnlineV2.Common/obj/Debug/net7.0/CustomerOnlineV2.Common.csproj.FileListAbsolute.txt
-
BINCustomerOnlineV2/CustomerOnlineV2.Common/obj/Debug/net7.0/CustomerOnlineV2.Common.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Common/obj/Debug/net7.0/CustomerOnlineV2.Common.pdb
-
BINCustomerOnlineV2/CustomerOnlineV2.Common/obj/Debug/net7.0/ref/CustomerOnlineV2.Common.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Common/obj/Debug/net7.0/refint/CustomerOnlineV2.Common.dll
-
20CustomerOnlineV2/CustomerOnlineV2.Common/obj/project.assets.json
-
22CustomerOnlineV2/CustomerOnlineV2.Common/obj/project.nuget.cache
-
1CustomerOnlineV2/CustomerOnlineV2.Repository/CustomerOnlineV2.Repository.csproj
-
25CustomerOnlineV2/CustomerOnlineV2.Repository/Repository/AccountRepository/AccountRepository.cs
-
1CustomerOnlineV2/CustomerOnlineV2.Repository/Repository/AccountRepository/IAccountRepository.cs
-
17CustomerOnlineV2/CustomerOnlineV2.Repository/Repository/ReceiverRepository/IReceiverRepository.cs
-
108CustomerOnlineV2/CustomerOnlineV2.Repository/Repository/ReceiverRepository/ReceiverRepository.cs
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/bin/Debug/net7.0/CustomerOnlineV2.Common.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/bin/Debug/net7.0/CustomerOnlineV2.Common.pdb
-
43CustomerOnlineV2/CustomerOnlineV2.Repository/bin/Debug/net7.0/CustomerOnlineV2.Repository.deps.json
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/bin/Debug/net7.0/CustomerOnlineV2.Repository.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/bin/Debug/net7.0/CustomerOnlineV2.Repository.pdb
-
44CustomerOnlineV2/CustomerOnlineV2.Repository/obj/CustomerOnlineV2.Repository.csproj.nuget.dgspec.json
-
7CustomerOnlineV2/CustomerOnlineV2.Repository/obj/CustomerOnlineV2.Repository.csproj.nuget.g.props
-
2CustomerOnlineV2/CustomerOnlineV2.Repository/obj/Debug/net7.0/CustomerOnlineV2.Repository.GeneratedMSBuildEditorConfig.editorconfig
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/obj/Debug/net7.0/CustomerOnlineV2.Repository.assets.cache
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/obj/Debug/net7.0/CustomerOnlineV2.Repository.csproj.AssemblyReference.cache
-
2CustomerOnlineV2/CustomerOnlineV2.Repository/obj/Debug/net7.0/CustomerOnlineV2.Repository.csproj.CoreCompileInputs.cache
-
15CustomerOnlineV2/CustomerOnlineV2.Repository/obj/Debug/net7.0/CustomerOnlineV2.Repository.csproj.FileListAbsolute.txt
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/obj/Debug/net7.0/CustomerOnlineV2.Repository.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/obj/Debug/net7.0/CustomerOnlineV2.Repository.pdb
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/obj/Debug/net7.0/ref/CustomerOnlineV2.Repository.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/obj/Debug/net7.0/refint/CustomerOnlineV2.Repository.dll
-
164CustomerOnlineV2/CustomerOnlineV2.Repository/obj/project.assets.json
-
121CustomerOnlineV2/CustomerOnlineV2.Repository/obj/project.nuget.cache
-
40CustomerOnlineV2/CustomerOnlineV2/Controllers/AccountController.cs
-
41CustomerOnlineV2/CustomerOnlineV2/Controllers/ReceiverInformationController.cs
@ -1 +1 @@ |
|||
b3aca38705df448e0c889622669f42ae48346995 |
|||
75bb5938ece42a314cccc83d6aeed81f53f3782a |
@ -0,0 +1,14 @@ |
|||
using CustomerOnlineV2.Common.Models.ReceiverModel; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace CustomerOnlineV2.Business.Business.ReceiverBusiness |
|||
{ |
|||
public interface IReceiverBusiness |
|||
{ |
|||
Task<ReceiverInformationModel> Receivers(ReceiverInformationModel model, string id, string user); |
|||
} |
|||
} |
@ -0,0 +1,39 @@ |
|||
using CustomerOnlineV2.Common.Helper; |
|||
using CustomerOnlineV2.Common.Models; |
|||
using CustomerOnlineV2.Common.Models.ReceiverModel; |
|||
using CustomerOnlineV2.Common.Models.TransactionModel; |
|||
using CustomerOnlineV2.Repository.Repository.ReceiverRepository; |
|||
using Newtonsoft.Json; |
|||
|
|||
namespace CustomerOnlineV2.Business.Business.ReceiverBusiness |
|||
{ |
|||
public class ReceiverBusiness : IReceiverBusiness |
|||
{ |
|||
//private readonly ILogger<ReceiverBusiness> _logger;
|
|||
private readonly IReceiverRepository _receiverRepository; |
|||
|
|||
|
|||
public ReceiverBusiness(IReceiverRepository receiverRepository) |
|||
{ |
|||
//_logger = logger;
|
|||
_receiverRepository = receiverRepository; |
|||
|
|||
} |
|||
|
|||
|
|||
|
|||
public async Task<ReceiverInformationModel> Receivers(ReceiverInformationModel model , string id, string user) |
|||
{ |
|||
|
|||
|
|||
|
|||
var model1 = await _receiverRepository.GetReceiverDetails(model , id, user) ; |
|||
return model1; |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
} |
|||
|
|||
} |
@ -1 +1 @@ |
|||
7d3ddbfcfff7a0c1c0a560d73ba6e17c40461a83 |
|||
188a986e3c00213d53343cb5350f2fe411297726 |
@ -0,0 +1,43 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace CustomerOnlineV2.Common.Models.ReceiverModel |
|||
{ |
|||
public class ReceiverInformationModel : CommonResponse |
|||
{ |
|||
|
|||
public string? ReceiverId { get; set; } |
|||
public string? CustomerId { get; set; } |
|||
public string? MembershipId { get; set; } |
|||
public string? firstName { get; set; } |
|||
public string? middleName { get; set; } |
|||
public string? lastName1 { get; set; } |
|||
public string? lastName2 { get; set; } |
|||
public string? Country { get; set; } |
|||
public string? Address { get; set; } |
|||
public string? State { get; set; } |
|||
public string? zipCode { get; set; } |
|||
public string? Email { get; set; } |
|||
public string? homePhone { get; set; } |
|||
public string? workPhone { get; set; } |
|||
public string? Mobile { get; set; } |
|||
public string? Relationship { get; set; } |
|||
public string? District { get; set; } |
|||
public string? purposeOfRemit { get; set; } |
|||
public string? receiverType { get; set; } |
|||
public string? idType { get; set; } |
|||
public string? idNumber { get; set; } |
|||
public string? createdDate { get; set; } |
|||
public string? idExpairyDate { get; set; } |
|||
public string? placeOfIssue { get; set; } |
|||
public string? paymentMode { get; set; } |
|||
public string? bankLocation { get; set; } |
|||
public string? payOutPartner { get; set; } |
|||
public string? bankName { get; set; } |
|||
public string? receiverAccountNumber { get; set; } |
|||
public string? Remarks { get; set; } |
|||
} |
|||
} |
@ -1 +1 @@ |
|||
e2992a2426e028994be1ab5381e233aaf0786939 |
|||
3e47baeb11296889f5f848437eb60b8e730bf2dc |
@ -0,0 +1,17 @@ |
|||
using CustomerOnlineV2.Common.Models.ReceiverModel; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace CustomerOnlineV2.Repository.Repository.ReceiverRepository |
|||
{ |
|||
public interface IReceiverRepository |
|||
|
|||
|
|||
{ |
|||
// Task<ReceiverInformationModel> GetReceiverDetails(ReceiverInformationModel model);
|
|||
Task<ReceiverInformationModel> GetReceiverDetails(ReceiverInformationModel model, string id, string user); |
|||
} |
|||
} |
@ -0,0 +1,108 @@ |
|||
using CustomerOnlineV2.Common.Models; |
|||
using CustomerOnlineV2.Common.Models.ReceiverModel; |
|||
using CustomerOnlineV2.Repository.ConnectionHelper; |
|||
|
|||
namespace CustomerOnlineV2.Repository.Repository.ReceiverRepository |
|||
{ |
|||
public class ReceiverRepository : IReceiverRepository |
|||
|
|||
{ |
|||
//private readonly ILogger<ReceiverRepository> _logger;
|
|||
private readonly IConnectionHelper _connHelper; |
|||
|
|||
public ReceiverRepository( IConnectionHelper connHelper) |
|||
{ |
|||
_connHelper = connHelper; |
|||
} |
|||
|
|||
public async Task<ReceiverInformationModel> GetReceiverDetails(ReceiverInformationModel model, string id , string user ) |
|||
{ |
|||
//ReceiverInformationModel _response = new ReceiverInformationModel();
|
|||
try |
|||
{ |
|||
var sql = "EXEC proc_online_receiverSetup"; |
|||
sql += " @flag = " + _connHelper.FilterString("i-new-register"); |
|||
//sql += ",@User = " + _connHelper.FilterString(user);
|
|||
//sql += ",@id = " + _connHelper.FilterString(id);
|
|||
sql += ",@user = " + _connHelper.FilterString(model.ReceiverId); |
|||
sql += ",@country =" + _connHelper.FilterString(model.Country); |
|||
//sql += ",@nativeCountry =" + _connHelper.FilterString(model.NativeCountry);
|
|||
sql += ",@receiverType =" + _connHelper.FilterString(model.receiverType); |
|||
sql += ",@email =" + _connHelper.FilterString(model.Email); |
|||
sql += ",@firstName =" + _connHelper.FilterString(model.firstName); |
|||
sql += ",@middleName =" + _connHelper.FilterString(model.middleName); |
|||
sql += ",@lastName1 =" + _connHelper.FilterString(model.lastName1); |
|||
sql += ",@lastName2 =" + _connHelper.FilterString(model.lastName2); |
|||
sql += ",@address =" + _connHelper.FilterString(model.Address); |
|||
//sql += ",@city =" + _connHelper.FilterString(model.city);
|
|||
//sql += ",@homePhone =" + _connHelper.FilterString(model.ContactNo);
|
|||
sql += ",@mobile =" + _connHelper.FilterString(model.Mobile); |
|||
sql += ",@relationship =" + _connHelper.FilterString(model.Relationship); |
|||
sql += ",@placeOfIssue =" + _connHelper.FilterString(model.placeOfIssue); |
|||
sql += ",@idType =" + _connHelper.FilterString(model.idType); |
|||
sql += ",@idNumber =" + _connHelper.FilterString(model.idNumber); |
|||
sql += ",@purposeOfRemit =" + _connHelper.FilterString(model.purposeOfRemit); |
|||
sql += ",@paymentMode =" + _connHelper.FilterString(model.paymentMode); |
|||
sql += ",@payOutPartner =" + _connHelper.FilterString(model.payOutPartner); |
|||
sql += ",@bankLocation =" + _connHelper.FilterString(model.bankLocation); |
|||
sql += ",@bankName =" + _connHelper.FilterString(model.bankName); |
|||
sql += ",@receiverAccountNo =" + _connHelper.FilterString(model.receiverAccountNumber); |
|||
sql += ",@remarks =" + _connHelper.FilterString(model.Remarks); |
|||
//sql += ",@receiverId =" + _connHelper.FilterString(model.ReceiverId);
|
|||
sql += ",@customerId =" + _connHelper.FilterString(model.CustomerId); |
|||
|
|||
sql += ",@membershipId =" + _connHelper.FilterString(model.MembershipId); |
|||
//sql += ",@otherRelationDesc =" + _connHelper.FilterString(model.OtherRelationDescription);
|
|||
sql += ",@zipCode =" + _connHelper.FilterString(model.zipCode); |
|||
//sql += ",@loginBranchId=" + _connHelper.FilterString(model.ag.ToString());
|
|||
//sql += ",@PurposeOfRemitanceOther=" + _connHelper.FilterString(model.PurposeOfRemitanceOther);
|
|||
// sql += ",@RelationshipOther=" + _connHelper.FilterString(model.RelationshipOther);
|
|||
//sql += ",@goodsType=" + _connHelper.FilterString(model.GoodsType);
|
|||
//sql += ",@goodsOrigin=" + _connHelper.FilterString(model.GoodsOrigin);
|
|||
//sql += ",@portOfShipment=" + _connHelper.FilterString(model.pop);
|
|||
//sql += ",@isFromMobile=" + _connHelper.FilterString(model.isFromMobile);
|
|||
// return ParseDbResult(sql);
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
var dt = _connHelper.ExecuteDataTable(sql); |
|||
|
|||
|
|||
if (dt == null || dt.Rows.Count <= 0) |
|||
{ |
|||
model.ResponseCode = ResponseHelper.FAILED; |
|||
model.ResponseMessage = "DB Null Error!"; |
|||
|
|||
// _logger.LogError("RECEIVERREPOSITORY | GETRECEIVEDRDETAILS | DB RESPONSE | " + JsonConvert.SerializeObject(_response));
|
|||
} |
|||
else |
|||
{ |
|||
model.ResponseCode = ResponseHelper.SUCCESS; |
|||
model.ResponseMessage = ResponseMessageHelper.SUCCESS; |
|||
|
|||
// _response.firstName = Convert.ToString(dt.Rows[0]["firstName"]);
|
|||
// _response.middleName = Convert.ToString(dt.Rows[0]["middleName"]);
|
|||
// _response.lastName1 = Convert.ToString(dt.Rows[0]["lastName1"]);
|
|||
// _response.Country = Convert.ToString(dt.Rows[0]["Country"]);
|
|||
// _response.Address = Convert.ToString(dt.Rows[0]["Address"]);
|
|||
// _response.State = Convert.ToString(dt.Rows[0]["State"]);
|
|||
} |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
model.ResponseCode = ResponseHelper.EXCEPTION; |
|||
model.ResponseMessage = "Exception occured: " + ex.Message; |
|||
|
|||
//_logger.LogError("RECEIVERREPOSITORY | GETRECEIVEDRDETAILS | EXCEPTION | " + JsonConvert.SerializeObject(_response));
|
|||
} |
|||
|
|||
return await Task.FromResult(model); |
|||
// return await Task.FromResult(model);
|
|||
//return await _response;
|
|||
} |
|||
|
|||
|
|||
} |
|||
} |
@ -1 +1 @@ |
|||
ae7b4abbfbff4702938c8af722f8017b1f097e82 |
|||
1d197628ad42fca9ec92e8f8b078f6d1a18841e7 |
@ -0,0 +1,41 @@ |
|||
using CustomerOnlineV2.Authorization; |
|||
using CustomerOnlineV2.Business.Business.ReceiverBusiness; |
|||
using CustomerOnlineV2.Common.Models.ReceiverModel; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Controller = Microsoft.AspNetCore.Mvc.Controller; |
|||
using HttpPostAttribute = Microsoft.AspNetCore.Mvc.HttpPostAttribute; |
|||
|
|||
namespace CustomerOnlineV2.Controllers |
|||
{ |
|||
public class ReceiverInformationController : Controller |
|||
{ |
|||
|
|||
|
|||
private readonly IReceiverBusiness _receiverBusiness; |
|||
|
|||
|
|||
public ReceiverInformationController(IReceiverBusiness receiverBusiness) |
|||
{ |
|||
|
|||
_receiverBusiness = receiverBusiness; |
|||
} |
|||
|
|||
[Authorization("Receiver")] |
|||
public IActionResult Receiver() |
|||
{ |
|||
return View(); |
|||
} |
|||
|
|||
|
|||
[HttpPost] |
|||
[Authorization("AddReceiver")] |
|||
public async Task<ReceiverInformationModel> AddReceiver(ReceiverInformationModel receiver , string id, string user) |
|||
{ |
|||
//ReceiverInformationModel _response = new ReceiverInformationModel();
|
|||
var receiver1 = await _receiverBusiness.Receivers(receiver, id, user); |
|||
return receiver1; |
|||
} |
|||
|
|||
|
|||
} |
|||
} |
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue