Пример #1
0
        protected async Task OnClick(MouseEventArgs args)
        {
            if (Link != null)
            {
                NavigationManger.NavigateTo(Link.Href);
            }

            if (onclick.HasDelegate)
            {
                await onclick.InvokeAsync(args);
            }
        }
Пример #2
0
        protected async Task RegisterAsync()
        {
            IsBusy = true;
            var result = await AuthService.RegisterAsync(Model);

            IsBusy = false;
            if (result.IsSuccess)
            {
                NavigationManger.NavigateTo("login");
            }
            else
            {
                Message = result.Message;
            }
        }