public MatchDetail GetData()
 {
     try
     {
         using (MatchPlayerEntities db = new MatchPlayerEntities())
         {
             return(db.MatchDetails.FirstOrDefault());
         }
     }
     catch (SqlException ex)
     {
         throw;
     }
 }
 public void AddMatchPlayer(MatchDetail matchDetail)
 {
     try
     {
         using  (MatchPlayerEntities db = new MatchPlayerEntities())
         {
             db.MatchDetails.Add(matchDetail);
             db.SaveChanges();
         }
     }
     catch (SqlException ex)
     {
         throw;
     }
 }