Example #1
0
 private int getGroup(string DivisionID, string sGroup)
 {
     int functionReturnValue = 0;
     var oTeams = new CSBC.Components.Season.ClsTeams();
     functionReturnValue = 0;
     try
     {
         functionReturnValue = oTeams.GetTeamCount(Int32.Parse(DivisionID), sGroup, (int)Session["CompanyID"], (int)Session["SeasonID"]);
     }
     catch (Exception ex)
     {
         Session["ErrorMSG"] = "getGroup::" + ex.Message;
     }
     finally
     {
         oTeams = null;
     }
     return functionReturnValue;
 }