How create custom controller?

For simplicity’s sake, I’m ready to do everything in one controller. It’s just that I don’t quite understand how I can access CREATE to my collection of types created inside the plugin. I’m not sure I’m doing everything right, could you give me a hint?