var controller = DependencyResolver.Current.GetService<ControllerClassName>(); controller.UserFunction();