コード例 #1
0
        protected async System.Threading.Tasks.Task GridDeleteButtonClick(MouseEventArgs args, dynamic data)
        {
            try
            {
                var crmDeleteContactResult = await Crm.DeleteContact(id : data.Id);

                if (crmDeleteContactResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception crmDeleteContactException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete Contact");
            }
        }
コード例 #2
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, RadzenCrm.Models.Crm.Contact data)
        {
            try
            {
                var crmDeleteContactResult = await Crm.DeleteContact(data.Id);

                if (crmDeleteContactResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception crmDeleteContactException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete Contact");
            }
        }