public override bool EjecutarComandoNuevo() { if (!VerificarDatosObligatorios()) { MessageBox.Show(@"Por favor ingrese los campos Obligatorios.", @"Atención", MessageBoxButtons.OK, MessageBoxIcon.Error); return(false); } var nuevoProveedor = new ProveedorDto { Contacto = txtContacto.Text, RazonSocial = txtRazonSocial.Text, Email = txtEmail.Text, Telefono = txtTelefono.Text, CondicionIvaId = ((CondicionIvaDto)cmbCondicionIva.SelectedItem).Id }; _proveedorServicio.Agregar(nuevoProveedor); return(true); }