Example #1
0
 private int PlayersAssigned()
 {
     int functionReturnValue = 0;
     if (Master.AccessType == "R")
         return functionReturnValue;
     var oTeams = new CSBC.Components.Season.ClsTeams();
     functionReturnValue = 0;
     try
     {
         functionReturnValue = oTeams.GetPlayersCount(DivisionId, (int)Session["CompanyID"], (int)Session["SeasonID"]);
     }
     catch (Exception ex)
     {
         Session["ErrorMSG"] = "PlayersAssigned::" + ex.Message;
     }
     finally
     {
         oTeams = null;
     }
     return functionReturnValue;
 }