public bool AddCaseConfiguration(vw_CaseConfiguration caseConfigurationData)
 {
     if (caseConfigurationData.SessionID == null)
     {
         long rollID;
         var  result = CircuitRollsRepository.AddRoll(caseConfigurationData, out rollID);
         if (result == CircuitRollsSavestatus.Saved)
         {
             caseConfigurationData.SessionID = rollID;
         }
     }
     return(CaseSessionsRepository.AddCaseConfiguration(caseConfigurationData));
 }
 public void AddNewCircuitRoll(int CircuitID, DateTime NextSessionDate, out long roll)
 {
     CircuitRollsRepository.AddRoll(new vw_CaseConfiguration {
         SessionDate = NextSessionDate, CircuitID = CircuitID
     }, out roll);
 }