public static ICommand New <TResult, TView, TViewModel>(TView view, TViewModel viewModel, ActionController <TView, TViewModel> actionController, params ActionContextEntry[] entries) where TView : class, IView where TViewModel : ViewModel <TView, TViewModel>, new() where TResult : Actionflow <TView, TViewModel>, new() { ICommand routedAction = null; try { routedAction = new RoutedAction <TResult, TView, TViewModel>(view, viewModel, actionController, entries); } catch (Exception exception) { ExceptionHandler.Handle(exception, Resources.ErrorMessageAction); } return(routedAction); }