Exemple #1
0
        private async Task OnSubmit()
        {
            var(resp, httpResp) = await Backend.SubscriptionCreateEmpty(Request);

            if (httpResp.IsSuccessStatusCode)
            {
                await Submitted.InvokeAsync(null);
                await Dismiss();
            }

            ValidationMessage = resp.Message;
        }
Exemple #2
0
        private async Task OnSubmit()
        {
            Request.SubscriptionId = SelectedSubscriptionId;
            var(resp, httpResp)    = await Backend.VideoAdd(Request);

            if (httpResp.IsSuccessStatusCode)
            {
                await Submitted.InvokeAsync(null);
                await Dismiss();
            }

            ValidationMessage = resp.Message;
        }