Whether you can do the repairs yourself or not depends on what the violations are. Some violations, such as painting or plastering the walls, you can do by yourself. For other violations, for instance plumbing or electrical work, the city requires you to use licensed contractors.