public void SaveHarFile(HarResult result)
        {
            int id;
            using (TestResultContext context = new TestResultContext(ConfigurationManager.ConnectionStrings["TestResultDb"].ConnectionString))
            {
                context.HarResults.Add(result);
                context.SaveChanges();

            }
        }
 public HarResult GetHarFile(int id)
 {
     HarResult result = new HarResult();
     using (TestResultContext context = new TestResultContext(ConfigurationManager.ConnectionStrings["TestResultDb"].ConnectionString))
     {
         var x = context.HarResults.FirstOrDefault(f => f.Id == id);
         result = x;
     }
     return result;
 }