Beispiel #1
0
 public ActionResult<List<User>> GetUsers()
 {
     if ( ModelState.IsValid )
     {
         var users = _userBll.GetUsers( );
         return Ok( users );
     }
     return NotFound( );
 }
 private void BindData()
 {
     dataGridView1.AutoGenerateColumns = false;
     dataGridView1.DataSource          = _userBll.GetUsers();
 }