Beispiel #1
0
 /// <summary>
 /// Saves the all the results linked to a single session
 /// </summary>
 /// <param name="session"></param>
 /// <param name="urls"></param>
 public void saveResults(Session session, string[] urls)
 {
     foreach (string url in urls)
     {
         singleResult result = new singleResult()
         {
             url     = url,
             session = session
         };
         resultRepo.saveResult(result);
     }
 }
 public bool saveResult(singleResult result)
 {
     try
     {
         ctx.singleResults.Add(result);
         ctx.SaveChanges();
         return(true);
     }
     catch (Exception e)
     {
         throw e;
     }
 }