public CaseSaveStatus AddBasicData(vw_FaultCaseBasicData caseBasicData)
 {
     try
     {
         using (var Transaction = BeginDatabaseTransaction())
         {
             caseBasicData.NationalID = MasterCaseComponent.CreateNationalID(caseBasicData);
             int            MasterCaseID;
             CaseSaveStatus CaseResult = MasterCaseComponent.AddCaseBasicData(caseBasicData, out MasterCaseID);
             if (CaseResult != CaseSaveStatus.Saved)
             {
                 return(CaseResult);
             }
             caseBasicData.MasterCaseID = MasterCaseID;
             CaseComponent.Add(caseBasicData);
             if (Transaction != null)
             {
                 Transaction.Commit();
             }
             return(CaseSaveStatus.Saved);
         }
     }
     catch (Exception ex)
     {
         HandleException(ex);
         return(CaseSaveStatus.Failed);
     }
 }
 public void Add(vw_FaultCaseBasicData caseBasicData)
 {
     faultRepository.Create(caseBasicData);
 }