Characters and quasi-permutation representations of nilpotent group of class 2 with two character degrees