A phenomenological description of photo- and electroproduction in nucleon resonance region