public virtual List <EntityDTO> GetSections(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetSections));
 }
 public virtual List <EntityDTO> GetBookmarks(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetBookmarksQuery));
 }
 public virtual List <EntityDTO> GetRelatedSubProcess(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetRelatedSubProcess));
 }
 public List <EntityDTO> GetRelatedControlApplications(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db,
                                              id, GlobalStringResource.Data_GetRelatedControlApplications));;
 }
 public EntityDTO GetOneEntityByReferenceNumberAndClass(string name, int cls)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, new object[] { DataHelper.FixString(name), cls },
                                              GlobalStringResource.Data_GetOneEntityByReferenceNumberAndClass).FirstOrDefault());
 }
 public EntityDTO GetControlRelatedRisk(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db,
                                              id, GlobalStringResource.Data_GetControlRelatedRisk).FirstOrDefault());
 }
 public List <EntityDTO> GetRelatedBusinessUnit(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db,
                                              id, GlobalStringResource.Data_GetRelatedBusinessUnit));
 }
 public List <EntityDTO> GetSubProcessParagraphs(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetSubProcessParagraphs));
 }
 public List <EntityDTO> GetActivityVariations(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetActivityVariationsQuery));
 }
        //public virtual List<EntityDTO> GetRelatedEntities(int id)
        //{
        //    return DataHelper.ExecuteReaderReturnDTO(db, id,
        //                            GlobalStringResource.Data_GetRelatedEntitiesQuery);
        //}

        public List <EntityDTO> GetSubProcessDependencies(int id)
        {
            return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                                     GlobalStringResource.Data_GetSubProcessDependenciesQuery));
        }
 public List <EntityDTO> GetSubProcessBusinessMapping(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetSubProcessBusinessMappingQuery));
 }
 public virtual List <EntityDTO> GetFrameworkReference(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetFrameworkReferenceQuery));
 }
 public virtual List <EntityDTO> GetModuleRelationship(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetModuleRelationshipQuery));
 }
 public virtual List <EntityDTO> GetChangeHistory(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetChangeHistoryQuery));
 }
 //TODO: Revisit
 public EntityDTO GetActualRelatedProcess(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db,
                                              id, GlobalStringResource.Data_GetActualRelatedProcess).FirstOrDefault());
 }
 public List <EntityDTO> GetKeyDocuments(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetKeyDocumentsQuery));
 }
 public List <EntityDTO> GetControlTypesCtl(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db,
                                              id, GlobalStringResource.Data_GetControlTypesCtl));
 }
 public EntityDTO GetActivityOverviewParent(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetActivityOverviewParentQuery)
            .FirstOrDefault());
 }
 public EntityDTO GetOneEntity(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetOneEntityQuery).FirstOrDefault());
 }
 public EntityDTO GetRelatedDefinition(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetRelatedDefinitionQuery).FirstOrDefault());
 }
 public List <EntityDTO> GetRelatedFrequency(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db,
                                              id, GlobalStringResource.Data_GetRelatedFrequency));;
 }
 public List <EntityDTO> GetChildDiagrams(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetRelatedDiagramQuery));
 }
 public EntityDTO GetOneEntity(string name)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, name,
                                              GlobalStringResource.Data_GetOneEntityByNameQuery).FirstOrDefault());
 }
 public List <EntityDTO> GetBusinessRules(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetBusinessRulesQuery));
 }
 public EntityDTO GetOneEntityByNameAndType(string name, int type)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, new object[] { DataHelper.FixString(name), type },
                                              GlobalStringResource.Data_GetOneEntityByNameAndType).FirstOrDefault());
 }
 public List <EntityDTO> GetRequiredData(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetRequiredDataQuery));
 }
 public virtual List <EntityDTO> GetDefinitionOfTerms(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetDefinitionOfTermsQuery));
 }
 public List <EntityDTO> GetSampleReference(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetSampleReferenceQuery));
 }
 public virtual List <EntityDTO> GetRolesAndResponsibilities(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetRolesAndResponsibilities));
 }
 public virtual List <EntityDTO> GetReviewersAndApprovers(int id)
 {
     return(DataHelper.ExecuteReaderReturnDTO(db, id,
                                              GlobalStringResource.Data_GetReviewersAndApprovers));
 }