Beispiel #1
0
    public static bool DisassociateUser(int userId, int companyId)
    {
        bool result = true;

        using (CompanyManager companyManager = new CompanyManager(null))
        {
            try
            {
                companyManager.DisassociateUser(userId, companyId);
            }
            catch (System.Data.SqlClient.SqlException e)
            {
                result = false;
            }
        }
        return(result);
    }