private void OnDeleteCustomField(ResourceCustomFieldViewModel accountCustomFieldViewModel)
 {
     if (SelectedCustomField != null)
     {
         Model.ResoruceCustomFields.Remove(SelectedCustomField.Model);
         if (SelectedCustomField.Model.Id > 0)
         {
             Workspace.Delete(SelectedCustomField.Model);
         }
         ResourceCustomFields.Remove(SelectedCustomField);
     }
 }
 private bool CanDeleteCustomField(ResourceCustomFieldViewModel arg)
 {
     return(SelectedCustomField != null);
 }