|
@@ -76,7 +76,10 @@ namespace Bizgaze.CRM.Visitors.ActionProviders
|
76
|
76
|
{
|
77
|
77
|
refstatusid = visitorsinfo.Result.RefStatusId;
|
78
|
78
|
visitorid = visitorsinfo.Result.VisitorId;
|
79
|
|
-
|
|
79
|
+ if (refstatusid == 1 || refstatusid == 2)
|
|
80
|
+ {
|
|
81
|
+ return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Visitor Already Exists");
|
|
82
|
+ }
|
80
|
83
|
if (refstatusid == 3)
|
81
|
84
|
{
|
82
|
85
|
var agree = await visitorManager.VisitorAgreementAsync(request, visitorid);
|
|
@@ -99,7 +102,7 @@ namespace Bizgaze.CRM.Visitors.ActionProviders
|
99
|
102
|
returnresponse.Obj = null;
|
100
|
103
|
returnresponse.PkValue = 0;
|
101
|
104
|
return ActionResponse<FormActionResponse>.CreateSuccessResponse("success", returnresponse);
|
102
|
|
- }
|
|
105
|
+ }
|
103
|
106
|
public List<UniqueKey> AppliedApps
|
104
|
107
|
{
|
105
|
108
|
get
|