private void button4_Click(object sender, EventArgs e) { limpiar(); da = new ClientesDA(); List <Clientes> lista = da.ClientesFacturacion(txtRuc.Text); if (lista.Count >= 1) { foreach (var a in lista) { lblRuc.Text = a.ruc; txtRazonSoc.Text = a.Nombre; } } else { MessageBox.Show("Clientes no encontrado en Tramrsa", "Mensaje"); } }
private void button2_Click(object sender, EventArgs e) { limpiar(); da = new ClientesDA(); ShortName = ""; ParentBusinessPartner = ""; RowStatus = "S"; EmailAddress = ""; IsCustomer = "S"; DocumentType = "DCI"; foreach (var a in da.ClientesFacturacion("")) { ERPCode = a.ruc; DocumentNumber = a.ruc; NameBusinessPartner = a.Nombre; invocarServicio(); } MessageBox.Show("Clientes registrado con éxito", "Mensaje"); }
public async Task <ActionResult <IEnumerable <Cliente> > > GetAsync() { ClientesDA clientes = new ClientesDA(Context); return(await clientes.GetClientesAsync().ConfigureAwait(false)); }