示例#1
0
 //To Update the records of a particluar team
 public int UpdateTeam(TblTeams team)
 {
     try
     {
         db.Entry(team).State = EntityState.Modified;
         db.SaveChanges();
         return(1);
     }
     catch
     {
         throw;
     }
 }
示例#2
0
 //To Update the records of a particluar player
 public int UpdatePlayer(TblPlayer player)
 {
     try
     {
         db.Entry(player).State = EntityState.Modified;
         db.SaveChanges();
         return(1);
     }
     catch
     {
         throw;
     }
 }