Dinesh
12 months ago
114 changed files with 1711 additions and 1381 deletions
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/DesignTimeBuild/.dtbcache.v2
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/02b76283-e33a-4b2c-8c0e-437588024fe7.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/035e690a-4405-4c01-b700-61f9254d7eed.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/03d4b023-3dd9-4284-b08a-f191d995fd54.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/24632d90-6fff-4675-9747-895a76b1219d.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/3ea282cd-ad39-4ea8-8b44-1fa7031b0776.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/3eba115c-b77a-4a06-9477-1c0afd8805b5.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/4e829197-9b68-4e5f-afcc-591b4607e1fb.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/609c5347-067f-4b3d-be3f-b9b5f9928c01.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/65a03552-8339-47d8-b445-2bc4972fd48d.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/FileContentIndex/dbbaa2ad-d757-4ce7-8722-0496ca2c1508.vsidx
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/v17/.futdcache.v2
-
BINCustomerOnlineV2/.vs/CustomerOnlineV2/v17/.suo
-
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
-
32CustomerOnlineV2/CustomerOnlineV2.Api/obj/CustomerOnlineV2.Api.csproj.nuget.dgspec.json
-
4CustomerOnlineV2/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
-
BINCustomerOnlineV2/CustomerOnlineV2.Api/obj/Debug/net7.0/CustomerOnlineV2.Api.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Api/obj/Debug/net7.0/CustomerOnlineV2.Api.pdb
-
17CustomerOnlineV2/CustomerOnlineV2.Api/obj/project.assets.json
-
26CustomerOnlineV2/CustomerOnlineV2.Api/obj/project.nuget.cache
-
1CustomerOnlineV2/CustomerOnlineV2.Business/Business/RegisterBusiness/IRegisterBusiness.cs
-
20CustomerOnlineV2/CustomerOnlineV2.Business/Business/RegisterBusiness/RegisterBusiness.cs
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/bin/Debug/net7.0/CustomerOnlineV2.Api.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Business/bin/Debug/net7.0/CustomerOnlineV2.Api.pdb
-
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
-
74CustomerOnlineV2/CustomerOnlineV2.Business/obj/CustomerOnlineV2.Business.csproj.nuget.dgspec.json
-
4CustomerOnlineV2/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
-
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
-
25CustomerOnlineV2/CustomerOnlineV2.Business/obj/project.assets.json
-
124CustomerOnlineV2/CustomerOnlineV2.Business/obj/project.nuget.cache
-
69CustomerOnlineV2/CustomerOnlineV2.Common/Models/RegisterModel/UserRegisterResponse.cs
-
BINCustomerOnlineV2/CustomerOnlineV2.Common/bin/Debug/net7.0/CustomerOnlineV2.Common.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Common/bin/Debug/net7.0/CustomerOnlineV2.Common.pdb
-
15CustomerOnlineV2/CustomerOnlineV2.Common/obj/CustomerOnlineV2.Common.csproj.nuget.dgspec.json
-
4CustomerOnlineV2/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.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
-
13CustomerOnlineV2/CustomerOnlineV2.Common/obj/project.assets.json
-
22CustomerOnlineV2/CustomerOnlineV2.Common/obj/project.nuget.cache
-
6CustomerOnlineV2/CustomerOnlineV2.Repository/Repository/RegisterRepository/IRegisterRepository.cs
-
73CustomerOnlineV2/CustomerOnlineV2.Repository/Repository/RegisterRepository/RegisterRepository.cs
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/bin/Debug/net7.0/CustomerOnlineV2.Common.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/bin/Debug/net7.0/CustomerOnlineV2.Common.pdb
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/bin/Debug/net7.0/CustomerOnlineV2.Repository.dll
-
BINCustomerOnlineV2/CustomerOnlineV2.Repository/bin/Debug/net7.0/CustomerOnlineV2.Repository.pdb
-
32CustomerOnlineV2/CustomerOnlineV2.Repository/obj/CustomerOnlineV2.Repository.csproj.nuget.dgspec.json
-
4CustomerOnlineV2/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
-
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
-
17CustomerOnlineV2/CustomerOnlineV2.Repository/obj/project.assets.json
-
124CustomerOnlineV2/CustomerOnlineV2.Repository/obj/project.nuget.cache
-
34CustomerOnlineV2/CustomerOnlineV2/Controllers/CustomerController.cs
-
5CustomerOnlineV2/CustomerOnlineV2/Program.cs
-
352CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerRegistration.cshtml
-
BINCustomerOnlineV2/CustomerOnlineV2/bin/Debug/net7.0/CustomerOnlineV2.Api.dll
-
BINCustomerOnlineV2/CustomerOnlineV2/bin/Debug/net7.0/CustomerOnlineV2.Api.pdb
-
BINCustomerOnlineV2/CustomerOnlineV2/bin/Debug/net7.0/CustomerOnlineV2.Business.dll
-
BINCustomerOnlineV2/CustomerOnlineV2/bin/Debug/net7.0/CustomerOnlineV2.Business.pdb
-
BINCustomerOnlineV2/CustomerOnlineV2/bin/Debug/net7.0/CustomerOnlineV2.Common.dll
-
BINCustomerOnlineV2/CustomerOnlineV2/bin/Debug/net7.0/CustomerOnlineV2.Common.pdb
-
BINCustomerOnlineV2/CustomerOnlineV2/bin/Debug/net7.0/CustomerOnlineV2.Repository.dll
-
BINCustomerOnlineV2/CustomerOnlineV2/bin/Debug/net7.0/CustomerOnlineV2.Repository.pdb
-
BINCustomerOnlineV2/CustomerOnlineV2/bin/Debug/net7.0/CustomerOnlineV2.dll
-
BINCustomerOnlineV2/CustomerOnlineV2/bin/Debug/net7.0/CustomerOnlineV2.pdb
-
2CustomerOnlineV2/CustomerOnlineV2/bin/Debug/net7.0/CustomerOnlineV2.staticwebassets.runtime.json
-
99CustomerOnlineV2/CustomerOnlineV2/obj/CustomerOnlineV2.csproj.nuget.dgspec.json
-
8CustomerOnlineV2/CustomerOnlineV2/obj/CustomerOnlineV2.csproj.nuget.g.props
-
34CustomerOnlineV2/CustomerOnlineV2/obj/Debug/net7.0/CustomerOnlineV2.GeneratedMSBuildEditorConfig.editorconfig
-
17CustomerOnlineV2/CustomerOnlineV2/obj/Debug/net7.0/CustomerOnlineV2.MvcApplicationPartsAssemblyInfo.cs
@ -1 +1 @@ |
|||
8bc93ebe94a580592cc266d48cb06c9a21b92814 |
|||
75bb5938ece42a314cccc83d6aeed81f53f3782a |
@ -1 +1 @@ |
|||
3e468675c81c6c645ff2ccecaa077786aac56018 |
|||
f9a056861701894a49cdbcc99da1e90832e884d6 |
@ -1,12 +1,81 @@ |
|||
using System; |
|||
using CustomerOnlineV2.Common.Models; |
|||
using CustomerOnlineV2.Common.Models.RegisterModel; |
|||
using CustomerOnlineV2.Repository.ConnectionHelper; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Reflection; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace CustomerOnlineV2.Repository.Repository.RegisterRepository |
|||
{ |
|||
internal class RegisterRepository |
|||
public class RegisterRepository : IRegisterRepository |
|||
{ |
|||
private readonly IConnectionHelper _connHelper; |
|||
|
|||
public RegisterRepository(IConnectionHelper connHelper) |
|||
{ |
|||
_connHelper = connHelper; |
|||
} |
|||
|
|||
public async Task<OnlineCustomerRegisterModel> GetRegisterDetails(OnlineCustomerRegisterModel model) |
|||
{ |
|||
try |
|||
{ |
|||
var sql = "EXEC proc_online_core_customerSetup"; |
|||
sql += " @flag = " + _connHelper.FilterString("customer-register-core"); |
|||
|
|||
//sql += ", @user = " + _connHelper.FilterString(model.ReceiverId.());
|
|||
sql += ",@country =" + _connHelper.FilterString(model.country); |
|||
|
|||
//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 += ",@occupation =" + _connHelper.FilterString(model.occupation); |
|||
sql += ",@placeOfIssue =" + _connHelper.FilterString(model.placeOfIssue); |
|||
sql += ",@idType =" + _connHelper.FilterString(model.idType); |
|||
sql += ",@idNumber =" + _connHelper.FilterString(model.idNumber); |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
var dt = _connHelper.ExecuteDataTable(sql); |
|||
|
|||
|
|||
if (dt == null || dt.Rows.Count <= 0) |
|||
{ |
|||
model.ResponseCode = ResponseHelper.FAILED; |
|||
model.ResponseMessage = "DB Null Error!"; |
|||
|
|||
|
|||
} |
|||
else |
|||
{ |
|||
model.ResponseCode = ResponseHelper.SUCCESS; |
|||
model.ResponseMessage = ResponseMessageHelper.SUCCESS; |
|||
|
|||
|
|||
} |
|||
} |
|||
catch (Exception ex) |
|||
{ |
|||
model.ResponseCode = ResponseHelper.EXCEPTION; |
|||
model.ResponseMessage = "Exception occured: " + ex.Message; |
|||
|
|||
|
|||
} |
|||
|
|||
return await Task.FromResult(model); |
|||
} |
|||
} |
|||
} |
@ -1 +1 @@ |
|||
60312af12f397c8bd0888994211d52acee250c13 |
|||
6be622cfc5f20b2c010f5d35f4d4352919e149be |
2
CustomerOnlineV2/CustomerOnlineV2/bin/Debug/net7.0/CustomerOnlineV2.staticwebassets.runtime.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,17 @@ |
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// This code was generated by a tool.
|
|||
// Runtime Version:4.0.30319.42000
|
|||
//
|
|||
// Changes to this file may cause incorrect behavior and will be lost if
|
|||
// the code is regenerated.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
using System; |
|||
using System.Reflection; |
|||
|
|||
[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation")] |
|||
|
|||
// Generated by the MSBuild WriteCodeFragment class.
|
|||
|
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue