Proportional Resonant Controller (PR controller)

Is there anyone who can help me implement the PR controller in PSIM. I am trying to simulate a grid-tied inverter for which I need to implement a current controller to control the current being injected into the grid. I need guidance for step to step implementation of PR controller in PSIM or If anyone who has already worked on it can share the files?