private void DeletePsProductAttribute(int idproductattribute) { try { Model.Prestashop.PsProductAttributeRepository PsProductAttributeRepository = new Model.Prestashop.PsProductAttributeRepository(); if (PsProductAttributeRepository.ExistProductAttribute((uint)idproductattribute)) { PsProductAttributeRepository.Delete(PsProductAttributeRepository.ReadProductAttribute((uint)idproductattribute)); } } catch (Exception ex) { Core.Error.SendMailError(ex.ToString()); MessageBox.Show(ex.Message); } }