VisitorPreInvitePreAction.cs Changes
This commit is contained in:
@@ -76,7 +76,10 @@ namespace Bizgaze.CRM.Visitors.ActionProviders
|
||||
{
|
||||
refstatusid = visitorsinfo.Result.RefStatusId;
|
||||
visitorid = visitorsinfo.Result.VisitorId;
|
||||
|
||||
if (refstatusid == 1 || refstatusid == 2)
|
||||
{
|
||||
return ActionResponse<FormActionResponse>.CreateErrorResponse("1", "Visitor Already Exists");
|
||||
}
|
||||
if (refstatusid == 3)
|
||||
{
|
||||
var agree = await visitorManager.VisitorAgreementAsync(request, visitorid);
|
||||
@@ -99,7 +102,7 @@ namespace Bizgaze.CRM.Visitors.ActionProviders
|
||||
returnresponse.Obj = null;
|
||||
returnresponse.PkValue = 0;
|
||||
return ActionResponse<FormActionResponse>.CreateSuccessResponse("success", returnresponse);
|
||||
}
|
||||
}
|
||||
public List<UniqueKey> AppliedApps
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user