コード例 #1
0
ファイル: ManCoService.cs プロジェクト: syedshah/Repository
 public ManCo GetManCo(int id)
 {
     try
     {
         return(_manCoRepository.GetManCo(id));
     }
     catch (Exception e)
     {
         throw new UnityException("Unable to retrieve man co", 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);
     }
 }