A seller has reaped nearly $5 million in the trade of a 15-unit apartment building in Union City, in a deal arranged by Marcus & Millichap.