public void CreateFailedReplay(FailedReplay replay)
 {
     using (var db = new SettingsContext())
     {
         db.FailedReplays.Add(replay);
         db.SaveChanges();
     }
 }
 public bool IsExistingReplay(FailedReplay failedReplay)
 {
     using (var db = new SettingsContext())
     {
         var replay = db.FailedReplays.FirstOrDefault(x => x.Build == failedReplay.Build && x.FilePath == failedReplay.FilePath);
         if (replay != null)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }