예제 #1
0
 public SubDocType GetSubDocType(int id)
 {
     try
     {
         return(_subDocTypeRepository.GetSubDocType(id));
     }
     catch (Exception e)
     {
         throw new UnityException("Unable to retrieve sub doc type", e);
     }
 }
예제 #2
0
 public void AddDocument(string documentId, string docTypeCode, string subDocTypeCode, string manCoCode, int?gridRunId)
 {
     try
     {
         var docType    = _docTypeRepositry.GetDocType(docTypeCode);
         var subDocType = _subDocTypeRepositry.GetSubDocType(subDocTypeCode);
         var manCo      = _manCoRepository.GetManCo(manCoCode);
         AddDocument(documentId, docType.Id, subDocType.Id, manCo.Id, gridRunId, null);
     }
     catch (Exception e)
     {
         throw new UnityException("Unable to add document", e);
     }
 }