You can do a repair if you have a flairing tool, and a tubing cutter. New unbent brake lines are sold at many parts stores. You cut the line, flare it, then use a fitting to join them.
If you aren't comfortable doing this, pay a real mechanic to do it.
John C.