VisitorphoneverifyPreAction.cs changes
This commit is contained in:
@@ -97,27 +97,36 @@ namespace Bizgaze.CRM.Visitors.ActionProviders
|
|||||||
dictObj["visitoremailid"] = Convert.ToInt64(dt1.Rows[0]["visitoremailid"]);
|
dictObj["visitoremailid"] = Convert.ToInt64(dt1.Rows[0]["visitoremailid"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (typeofvistor == "1")
|
if (dt.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
if (dictObj.ContainsKey("isverified"))
|
return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Mobile Number Already Exists", null);
|
||||||
{
|
|
||||||
var isverified = dictObj["isverified"].ToString();
|
|
||||||
await Task.Delay(0);
|
|
||||||
if (isverified == "false")
|
|
||||||
{
|
|
||||||
return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Please Verify Mobile Number", null);
|
|
||||||
}
|
|
||||||
if (dt.Rows.Count > 0)
|
|
||||||
{
|
|
||||||
return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Mobile Number Already Exists", null);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (dt1.Rows.Count > 0)
|
|
||||||
{
|
|
||||||
return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Email already Exists", null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dt1.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Email already Exists", null);
|
||||||
|
}
|
||||||
|
//if (typeofvistor == "1")
|
||||||
|
//{
|
||||||
|
// if (dictObj.ContainsKey("isverified"))
|
||||||
|
// {
|
||||||
|
// var isverified = dictObj["isverified"].ToString();
|
||||||
|
// await Task.Delay(0);
|
||||||
|
// if (isverified == "false")
|
||||||
|
// {
|
||||||
|
// return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Please Verify Mobile Number", null);
|
||||||
|
// }
|
||||||
|
// if (dt.Rows.Count > 0)
|
||||||
|
// {
|
||||||
|
// return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Mobile Number Already Exists", null);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (dt1.Rows.Count > 0)
|
||||||
|
// {
|
||||||
|
// return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Email already Exists", null);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
var returnresponse = new FormActionResponse();
|
var returnresponse = new FormActionResponse();
|
||||||
returnresponse.Obj = dictObj as ExpandoObject;
|
returnresponse.Obj = dictObj as ExpandoObject;
|
||||||
returnresponse.PkValue = defaultPKValue;
|
returnresponse.PkValue = defaultPKValue;
|
||||||
|
|||||||
Fai riferimento in un nuovo problema
Block a user