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