Пример #1
0
    public static bool DeleteEmployee(int companyId, int employeeId)
    {
        bool result = true;

        using (var humanResourcesManager = new HumanResourcesManager(null))
        {
            try
            {
                humanResourcesManager.DeleteEmployee(companyId, employeeId);
            }
            catch (System.Data.SqlClient.SqlException e)
            {
                result = false;
            }
        }
        return(result);
    }