static void CreateAdvisor(IVendorManagement vendorMgmt, IWidgets widgets, Guid sessionID,
                                  string externalUserID, string firstName, string lastName, string email, string phone,
                                  string securityGroupName, string securityGroupDescription,
                                  out int advisorID, out int securityGroupID)
        {
            advisorID = vendorMgmt.CreateUser(externalUserID, vendorName, firstName, lastName, email, phone);

            var response = widgets.CreateSecurityGroup(sessionID, securityGroupName, securityGroupDescription, (int)CleverDomeCommon.SecurityGroupType.Owner, advisorID, applicationID);

            if (response.Result != ResultType.Success)
            {
                throw new Exception(response.Message);
            }

            securityGroupID = response.ReturnValue.ID.Value;
        }
 static int CreateUser(IVendorManagement vendorMgmt, string userID, string firstName, string lastName, string email, string phone)
 {
     return(vendorMgmt.CreateUser(userID, vendorName, firstName, lastName, email, phone));
 }