|
@@ -30,7 +30,7 @@ namespace Bizgaze.CRM.Visitors.ActionProviders
|
30
|
30
|
}
|
31
|
31
|
}
|
32
|
32
|
public string FormActionName
|
33
|
|
- {
|
|
33
|
+ {
|
34
|
34
|
get
|
35
|
35
|
{
|
36
|
36
|
return "VisitorPhonenumberVerify";
|
|
@@ -75,6 +75,7 @@ namespace Bizgaze.CRM.Visitors.ActionProviders
|
75
|
75
|
//var vistortypeid = Convert.ToInt32(dictObj["visitortypeid"].ToString());
|
76
|
76
|
var mobile = Convert.ChangeType(dictObj["mobilenumber1"].ToString(), typeof(string));
|
77
|
77
|
var email = Convert.ChangeType(dictObj["emailid_new"].ToString(), typeof(string));
|
|
78
|
+ var typeofvisitor = Convert.ChangeType(dictObj["typeofvisitor"].ToString(), typeof(string));
|
78
|
79
|
var select = new Unibase.Data.Sql.Select("bizgazecrm_visitornumbers").AllColumns().Where("mobilenumber", mobile);
|
79
|
80
|
var parameters = new List<Unibase.Data.Parameter>();
|
80
|
81
|
parameters.Add(new Unibase.Data.Parameter("@mobilenumber", mobile));
|
|
@@ -97,27 +98,27 @@ namespace Bizgaze.CRM.Visitors.ActionProviders
|
97
|
98
|
dictObj["visitoremailid"] = Convert.ToInt64(dt1.Rows[0]["visitoremailid"]);
|
98
|
99
|
}
|
99
|
100
|
}
|
100
|
|
- // if (vistortypeid != 2)
|
101
|
|
- // {
|
102
|
|
- if (dictObj.ContainsKey("isverified"))
|
|
101
|
+ if (typeofvisitor == "1")
|
103
|
102
|
{
|
104
|
|
- var isverified = dictObj["isverified"].ToString();
|
105
|
|
- await Task.Delay(0);
|
106
|
|
- if (isverified == "false")
|
107
|
|
- {
|
108
|
|
- return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Please Verify Mobile Number", null);
|
109
|
|
- }
|
110
|
|
- if (dt.Rows.Count > 0)
|
|
103
|
+ if (dictObj.ContainsKey("isverified"))
|
111
|
104
|
{
|
112
|
|
- return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Mobile Number Already Exists", null);
|
113
|
|
- }
|
|
105
|
+ var isverified = dictObj["isverified"].ToString();
|
|
106
|
+ await Task.Delay(0);
|
|
107
|
+ if (isverified == "false")
|
|
108
|
+ {
|
|
109
|
+ return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Please Verify Mobile Number", null);
|
|
110
|
+ }
|
|
111
|
+ if (dt.Rows.Count > 0)
|
|
112
|
+ {
|
|
113
|
+ return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Mobile Number Already Exists", null);
|
|
114
|
+ }
|
114
|
115
|
|
115
|
|
- if (dt1.Rows.Count > 0)
|
116
|
|
- {
|
117
|
|
- return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Email already Exists", null);
|
|
116
|
+ if (dt1.Rows.Count > 0)
|
|
117
|
+ {
|
|
118
|
+ return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Email already Exists", null);
|
|
119
|
+ }
|
118
|
120
|
}
|
119
|
121
|
}
|
120
|
|
- // }
|
121
|
122
|
var returnresponse = new FormActionResponse();
|
122
|
123
|
returnresponse.Obj = dictObj as ExpandoObject;
|
123
|
124
|
returnresponse.PkValue = defaultPKValue;
|