Exemplo n.º 1
0
 private void DELRow(int teamId)
 {
     //var oTeam = new CSBC.Components.Season.ClsTeams();
     try
     {
         using (var db = new CSBCDbContext())
         {
             var rep = new TeamRepository(db);
             var deleted = rep.DeleteById(teamId);
         }
         //. oTeam.DELRow(TeamID, Session["CompanyID"], Session["SeasonID"]);
     }
     catch (Exception ex)
     {
         Session["ErrorMsg"] = ex.Message;
     }
 }