Beispiel #1
0
 public int Delete(int SportsSeasonID, int UserIdentity)
 {
     try
     {
         using (var db = new HCMEntities())
         {
             SportsSeasons SportsSeasonsObj = db.SportsSeasons.SingleOrDefault(x => x.SportsSeasonID.Equals(SportsSeasonID));
             db.SportsSeasons.Remove(SportsSeasonsObj);
             return(db.SaveChanges(UserIdentity));
         }
     }
     catch
     {
         throw;
     }
 }