public IActionResult GetbyAll() { try { var teste = _pessoaServices.GetByAll(); return(Ok(teste)); } catch (Exception ex) { return(StatusCode(500, ex)); } }
private void frmPrincipal_Load(object sender, EventArgs e) { _pessoaServices.GetByAll(); }