Example #1
0
 private void LoadUndrafted(int divisionId)
 {
     var rep = new PlayerRepository(new CSBCDbContext());
     try
     {
         var undrafted = rep.GetUndrafterPlayers(divisionId);
         grdUndraftedPlayers.DataSource = undrafted;
         grdUndraftedPlayers.DataBind();
     }
     catch (Exception ex)
     {
         lblError.Text = "LoadUndrafted::" + ex.Message;
     }
 }