Esempio n. 1
0
        protected async System.Threading.Tasks.Task Form0Submit(BlazorCrmWasm.Models.Crm.Contact args)
        {
            try
            {
                var crmCreateContactResult = await Crm.CreateContact(contact : contact);

                DialogService.Close(contact);
            }
            catch (System.Exception crmCreateContactException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Contact!");
            }
        }
        protected async void Form0Submit(RadzenCrm.Models.Crm.Contact args)
        {
            try
            {
                var crmCreateContactResult = await Crm.CreateContact(contact);

                DialogService.Close(contact);
            }
            catch (Exception crmCreateContactException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Contact!");
            }
        }