public SubDocType GetSubDocType(int id) { try { return(_subDocTypeRepository.GetSubDocType(id)); } catch (Exception e) { throw new UnityException("Unable to retrieve sub doc type", e); } }
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); } }