Can be difficult to repair - especially as typically ECU damage is caused by water ingress. New ECU may be up to €500 - €600 depending on car.
Should be able to get from breakers for about €70 or €80 though - that's the route I'd go. Be careful though - be VERY specific and go by all the reference numbers on the old ECU as it is not sufficient simply to get an "ECU for a 2001 1.4 Corolla" for example.