Exemple #1
0
        public static LocalActionModel Build <T>(IActionView <T> view, Action onSuccess)
        {
            var result = new LocalActionModel(onSuccess);

            view.BindActionAndInitialize(result);
            return(result);
        }
Exemple #2
0
        public static LocalActionModel Build <T>(IActionView <T> view, Func <Task> localAction, Action onSuccess = null)
        {
            var result = new LocalActionModel(onSuccess, localAction);

            view.BindActionAndInitialize(result);
            return(result);
        }