コード例 #1
0
ファイル: Teste.aspx.cs プロジェクト: repositoryBarros/Loja
        public void BuscarClientes()
        {
            ClienteBLL cliente = new ClienteBLL();

            grdClientes.DataSource = cliente.GetAll();
            grdClientes.DataBind();

            cliente = null;
        }
コード例 #2
0
ファイル: FormCheckIn.cs プロジェクト: ArtuoS/HotelSystem
        // Atualiza o datagridview com os clientes
        private void UpdateGridViewClientes()
        {
            QueryResponse <Cliente> response = clienteBLL.GetAll();

            if (response.Success)
            {
                dgvClientes.DataSource = response.Data;
            }
            else
            {
                MessageBox.Show(response.Message);
            }
        }
コード例 #3
0
 public HttpResponseMessage GetAll()
 {
     return(Request.CreateResponse(HttpStatusCode.OK, clienteBLL.GetAll()));
 }