Переглянути джерело

VisitorphoneverifyPreAction.cs changes

Shanmukh 1 рік тому
джерело
коміт
66b6430756

+ 27
- 18
CRM.Visitors/ActionProviders/VisitorphoneverifyPreAction.cs Переглянути файл

97
                     dictObj["visitoremailid"] = Convert.ToInt64(dt1.Rows[0]["visitoremailid"]);
97
                     dictObj["visitoremailid"] = Convert.ToInt64(dt1.Rows[0]["visitoremailid"]);
98
                 }
98
                 }
99
             }
99
             }
100
-            if (typeofvistor == "1")
100
+            if (dt.Rows.Count > 0)
101
             {
101
             {
102
-                if (dictObj.ContainsKey("isverified"))
103
-                {
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)
111
-                    {
112
-                        return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Mobile Number Already Exists", null);
113
-                    }
102
+                return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Mobile Number Already Exists", null);
103
+            }
114
 
104
 
115
-                    if (dt1.Rows.Count > 0)
116
-                    {
117
-                        return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Email already Exists", null);
118
-                    }
119
-                }
105
+            if (dt1.Rows.Count > 0)
106
+            {
107
+                return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Email already Exists", null);
120
             }
108
             }
109
+            //if (typeofvistor == "1")
110
+            //{
111
+            //    if (dictObj.ContainsKey("isverified"))
112
+            //    {
113
+            //        var isverified = dictObj["isverified"].ToString();
114
+            //        await Task.Delay(0);
115
+            //        if (isverified == "false")
116
+            //        {
117
+            //            return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Please Verify Mobile Number", null);
118
+            //        }
119
+            //        if (dt.Rows.Count > 0)
120
+            //        {
121
+            //            return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Mobile Number Already Exists", null);
122
+            //        }
123
+
124
+            //        if (dt1.Rows.Count > 0)
125
+            //        {
126
+            //            return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Email already Exists", null);
127
+            //        }
128
+            //    }
129
+            //}
121
             var returnresponse = new FormActionResponse();
130
             var returnresponse = new FormActionResponse();
122
             returnresponse.Obj = dictObj as ExpandoObject;
131
             returnresponse.Obj = dictObj as ExpandoObject;
123
             returnresponse.PkValue = defaultPKValue;
132
             returnresponse.PkValue = defaultPKValue;

Завантаження…
Відмінити
Зберегти